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

Webots pause simulation

I am building a little maze solver project using Webots. I am writing my controller in C programming language. I am using Windows OS. Can someone let me know if there is a way to pause the simulation when a certain event happens? Something like :…
ROBlackSnail
  • 501
  • 1
  • 5
  • 20
1
vote
1 answer

Webots - Avoid (part of) robot sinking into RectangleArena; and how to affix it to the ground

I've this robot with physics and all: The problem I face is that, as soon as I start the simulation, a part of the robot will sink into the RectangleArena, like this: The Robot does have some weird joints, but if you pay attention to the bottom…
Sanjay Verma
  • 1,390
  • 22
  • 40
1
vote
1 answer

Webots - BoundingObject of Robot becomes null after world reload (how to prevent that?)

I've a Robot node with children = [SolidCylinderJoint]. SolidCylinderJoint is a proto that I created, which defines a DEF node as a field, i.e., field SFNode geometry DEF BODY Cylinder { height 0.1 radius 0.05 …
Sanjay Verma
  • 1,390
  • 22
  • 40
1
vote
1 answer

WEBOTS - Write controller data to external CSV file

I have this code from webots lidar.wbt . I need to get some lidar data to be plotted using opengl for another project. #include #include #include #include #include…
Sid133
  • 354
  • 2
  • 17
1
vote
1 answer

Can Webots send real-time data to Simulink ?

I want to use Simulink of MATLAB to calculate the foot trajectory and send the data to Webots to execute. Meanwhile, Webots send the data which measurd by sensors in robot to Simulink and modify the controller. Can I realize it? Is there a more…
LING
  • 37
  • 3
1
vote
1 answer

Motor/Sensor in Webots vs. Pycharm

When I am debugging my webots controller in Pycharm, I noticed that a motor will have two constants: LINEAR and ROTATIONAL. The proto for the NAO lists "RShoulderPitch" as a rotational motor (for a Hinge2Joint), but in PyCharm, the motor returned by…
Sheila
  • 35
  • 4
1
vote
0 answers

Lots of errors when transfering to DARwIN-OP

When I try to do cross compilation or remote control with any controller in the last version of webots, whether with some example of the Darwin robot or some controller that I have programmed, I have many errors. I get the following code when I try…
1
vote
0 answers

Can I use webots to schedule task of existing demo?

I want to implement some scheduling algorithm using webots, like FIFO, EDF(preemptible), to control automobile's tasks( like turn left, turn right). But it looks like there's no way to control one task's preemption. So how can I create a task called…
Yanfeng Li
  • 79
  • 1
  • 4
1
vote
1 answer

Does Webots simulator support closed-loop kinematic chains?

Short version is the post title. Long explanation here. Recently, I've been working on a rover project, the suspension mechanism for which is rocker-bogie mechanism with a differential bar (not a gearbox) . I have been working on the simulation…
eslam
  • 13
  • 2
1
vote
1 answer

How to reset simulation without killing extern bot process

I'm trying to use reinforcement learning in Webots with keras-rl, but resetting the world with supervisor bot kills the whole python process. Is there a way to reset the simulation without killing the process? I'm running Ubuntu and using IntelliJ…
Master
  • 11
  • 2
1
vote
1 answer

Simulating Indicator Lights for Range Rover PROTO in highway_overtaking scenario in Webots

I am trying to simulate an overtaking scenario by editing the existing highway_overtaking.wbt in Webots to observe the indicator lights turn on/off before switching lanes. How do I use the Driver library to do so? In the modified scenario I…
Bot_potato
  • 25
  • 2
1
vote
1 answer

Is there a way to add new nodes in the scene tree during simulation in webots?

I want to create a real time simulation of autonomous vehicle for an intersection manager. I was able to do it by creating a fixed number of cars before the simulation starts. Now, I would like to create a simulation for the same purpose but now I…
1
vote
1 answer

why can't I insert a RotationalMotor node in 'device' field of BallJoint node in my proto?

I want to use a BallJoint in my proto however, I am getting this Warning: (PROTO) > Solid > BallJoint: Skipped node: Cannot insert RotationalMotor node in 'device' field of BallJoint node. Any ideas how to fix this? Here's how I define it: …
hkhodr
  • 23
  • 3
1
vote
1 answer

How to run a robot's controller in multi processes or multi threads in webots?

I want to have a controller that somehow runs 3 processes to run the robot's code. I am trying to simulate a humanoid soccer robot in webots . To run our robot's code, we run 3 processes. One for the servomotors' power management , another one for…
S.kh
  • 45
  • 5
1
vote
1 answer

Using the Webots Connector Device with ROS

I'm currently trying to make the Connector Device work with ROS. My first step was to just take one of the robots of the "connector.wbt" world and place it in a new world and switching the robots controller argument to "ros"as one can see…