Questions tagged [webots]

Webots is an open-source development environment used to model, program and simulate mobile robots.

Links

255 questions
1
vote
1 answer

Bounding object custom-scapes in webot

I have made an object like the one in the picture. How to make bounding objects follow their shape? https://i.stack.imgur.com/NCnIu.jpg I learn to make that shape in this tutorial…
1
vote
1 answer

How to connect 3 bars end to end in Webots?

I am trying to build a tensegrity structure in Webots, where a fundamental structural feature is 2 bars and a linear spring connecting end to end to form a triangle. Is there any way to build such a structure? To be more specific, I built a 2-bar…
Keran
  • 35
  • 4
1
vote
1 answer

Trying to import python modules returns ModuleNotFound Error

Im attempting to use the numpy module in webots but whatever I try I always get INFO: assignment_2_controller_2: Starting controller: python3.6 -u "assignment_2_controller_2.py" [assignment_2_controller_2] Traceback (most recent call…
1
vote
1 answer

Webot camera default parameters like pixel size and focus

I am using two cameras without lens or any other settings in webot to measure the position of an object. To apply the localization, I need to know the focus length, which is the distance from the camera center to the imaging plane center,namely f. I…
1
vote
1 answer

Webots: create node programatically

I have a simulation where a robot simulate an ants behavior: while on his way back to the nest, the robot leaves a trail. In the real world ants use trail pheromones to achieve this. To emulate these pheromones in the simulation I want my robot to…
1
vote
1 answer

Webots - How mark coordinates in environment during simulation

Robot controller uses RRT to generate a set of nodes (x,y) taking it from start to finish. If possible I would like for these nodes to somehow show in the environment. Edit: root = supervisor.getRoot() root_children_field =…
nightman
  • 11
  • 2
1
vote
1 answer

what can i do to solve Webots error message

I'm new to webots program and I'm building a new robot controller, but when I hit the start simulation button, it gives me this error : WARNING: "python3.8.exe" was not found. Webots requires Python version 3.7 or 2.7 (64 bit) from python.org in…
mohammad996
  • 17
  • 1
  • 6
1
vote
1 answer

How can I get an uneven ground in webots

I'm using webots to test my algorithms on a simulation robot model. I want to test my robot with an uneven ground to prove the robustness.I find a floor object called unevenTerrain in webots, which can randomly generated uneven terrain based on…
1
vote
1 answer

Reset Webots Position Sensor

I want a webots robot to move forward and then rotate 90 degrees clockwise in exactly the same manner 4 times to go around a square. The robot will do the first leg perfectly but I can not figure out how to reset the position sensor to 0 at the end…
1
vote
1 answer

Motor as Velocity Sensor?

I have read the FAQ on how to get velocities from nodes. Yet, of the methods described, none feature a way to get the velocity from a passive servo motor (motor sensing). I'm trying to use a motor, set to torque 0, which makes it 'loose', as a…
Aerodynamic
  • 782
  • 5
  • 19
1
vote
1 answer

Accessing Keyboard Input in Webots

I am attempting to modify the controller file highway_overtake.py in order to access keyboard inputs from the user. After following the documentation, the relevant code appears as follows: from Controller import Keyboard keyboard =…
1
vote
1 answer

Webots Sim "ready" signal

When using an external python script to start webots (or when restarting an environment) it would be necessary to know when the simulation is ready, for an external controller to (re-)run. Is there any sort of "ready" signal that webots returns…
Aerodynamic
  • 782
  • 5
  • 19
1
vote
1 answer

How to access the SUMO vehicles from highway_overtake.py in Webots?

I'm modifying the highway_overtake.py controller to be able to track the position and speed of the neighboring SUMO vehicles (the ones that are highlighted in transparent colored boxes). How can I access the SUMO vehicle information that is in close…
Bot_potato
  • 25
  • 2
1
vote
1 answer

Warning: QObject::startTimer: Timers cannot have negative intervals in webots-ros

I am writing a new ros node in webots-ros and sometimes I get this warning: QObject::startTimer: Timers cannot have negative intervals. And the webots simulation freezes. Any ideas on what can be the problem?
hkhodr
  • 23
  • 3
1
vote
1 answer

Step through simulation

Is it possible to control the simulation/ world / physic step through the (supervisor) API ? (this would be needed for an external ML evaluation & action intervention before continuing the sim) This is somewhat related to Controlling Webots…
Aerodynamic
  • 782
  • 5
  • 19