Questions tagged [webots]

Webots is an open source and multi-platform desktop application used to simulate robots. It provides a complete development environment to model, program and simulate robots.

Filter by
Sorted by
Tagged with
1 vote
1 answer
19 views

Displaying a png-file on a display - stays black

In Webots with a Python controller: I have a PNG-File (640x480) which displays a Matrix-Numpy-Array-figure which is getting produced by my code. I would like to display it on an Display overlay. But ...
1 vote
0 answers
21 views

Using a PROTO node as supervisor in Webots

In my Webots simulation, I would like to use a PROTO as a supervisor and therefore added a supervisor TRUE line to the proto definition. However, it does not have ...
  • 11
1 vote
1 answer
23 views

How to use Supervisor along with regular libraries

In my Webots simulation, I am trying to use a supervisor in order to get parameters from other nodes to then have a motor respond by increasing or decreasing its torque, to which I have written the ...
1 vote
1 answer
63 views

Importing 3D models into webots 2023a and splitting parts into shapes for a robot

I am quite new with Webots. I am wondering if there is a possibility to import 3D models into Webots 2023a as it was possible within Webots 2021b. I have managed to import it within 2021b, but when I ...
  • 11
0 votes
0 answers
39 views

How to use the piecewise function to control the rotation motor in webots?

I am creating a Webots robot controller by using C language and trying to use piecewise functions to control two rotation motors and simulate the swinging motion of a leg. One motor for the hip and ...
0 votes
0 answers
19 views

How to access the values of a batterie of a charger within the controller.py?

I have a mobile robot and I want him to learn: Green-light = Energie = I should drive towards it. In the beginning the robot drives arround randomly and when it enters a Charger it connects getting ...
1 vote
1 answer
87 views

How to import a 3D model in Webots_R2022b?

I have a 3D model which is made by SolidWorks. I remember that in older versions there was a function to import 3D models but I can't find it in R2022b. Can you tell me how to import it? Thanks so ...
  • 11
0 votes
2 answers
45 views

How could you have controllers communicate with each other?

I have been attempting to have two controllers be able to access information from each other in a way that is similar to object-oriented programming in UNITY, however, I have constantly had problems ...
1 vote
1 answer
22 views

How can I make an invisible wall in Webots?

I need to create an invisible wall in Webots but I don't know how to do it. Could someone please help me?
  • 13
1 vote
1 answer
68 views

Headless mode with GPUs

I have tested Webots headless mode in docker as described here in Ubuntu 20.04. In the headless mode, if we make gpus available to the docker container as follows ...
0 votes
1 answer
45 views

Batteries loose functionality

In Webots: I want my little robot drive to a fully charged charger (green pointlight and cylinder) and drain its energy. While the batterie loose energie it sould change its coulor. It works as long ...
1 vote
1 answer
383 views

Why a car is sinking into the ground in my Webots simulation?

I added a car from the Webots library into my scene, but when I start the simulation the car is sinking into the ground. This is the same BmwX5 car model used in the sample simulation "city.wbt&...
4 votes
1 answer
46 views

Webots: Increase Calculation Speed On Supercomputer

I am using a supercomputer (MSI, Minnesota Supercomputing Institute) to run my Webots simulations. However, on my own laptop (MacOS) the amount of time necessary to calculations is much shorter. I was ...
0 votes
1 answer
113 views

How to make the output axis of hingejoint with rotational motor not affected by physics?

I want the rotational motors be affected only by my controller, not by the physics of the world. The problem is shown in this video. How to fix this?
1 vote
1 answer
147 views

robotic arm controlled by mouse

I want to create a webot simulation for robotic arm. The entire arm should be controlled by the mouse. Is it possible to implement in webots? I am trying simulation for this https://youtu.be/...
0 votes
1 answer
139 views

Retrieving the global 3d position of a robot or object in Webots

In the context of my simulation, I need to programmatically get the position of robots and objects in the world (in global coordinate system). How can this be done? I'm using Webots R2023a.
0 votes
1 answer
142 views

Webots world built from sources environment not working in distributions

I made a simulation of a farm in Webots using the new animals objects released with R2023a. I first developed my simulation using these instruction to build Webots from sources: https://github.com/...
0 votes
1 answer
36 views

Infinite world that wraps around

In webots: Is it possible for an infinite arena where your mobile robot can drive out left of the arena an come back on the right? Like a wrapping world.
0 votes
0 answers
11 views

How does the lightsensor values work? Lightsensorvalue into Percentage

In Webots: I try to build a Braitenberg vehicle so that when it receives light information through the ligh sensors it drives either away or towards the light. I used an ePuck and tried to just ...
0 votes
1 answer
40 views

Webots simulation, damped world

I am a master's student at the physics department of the Goethe University Frankfurt am Main. I started to learn about Webots, which I intend to use for my master's thesis. I am at the very beginning, ...
0 votes
1 answer
55 views

Webots Ros2 Docker Extern controller plugin silently crashes when asking for keyboard

I am using webots 2022b inside of a docker container. In my vs code, it runs fine, but when I try to run the command straight from the docker container, I am running into an issue where the controller ...
  • 121
0 votes
1 answer
97 views

Webots cannot download objects and textures

After installing the newest version of Webots, I find that the objects (PROTO) and textures of the scene cannot be downloaded. The console throws many errors about download failures and the 3D scene ...
0 votes
1 answer
68 views

The Matlab controller doesn't work for the Webots robot

I create a bipedal robot and I would like to use MATLAB to control two rotational motors. The code for controller is simple but some warning just shows up. Does anyone know how to solve this? WARNING: ...
1 vote
2 answers
57 views

Question about getting global coordinates of lidar point cloud from relative in Webots

I need to do custom mapping of surroundings with lidar using mobile robot in Webots. What I use for that: GPS for getting robot position. Compass for getting direction robot. Lidar for getting info ...
0 votes
1 answer
138 views

How can I speed-up my Webots simulation?

My simulation is running correctly but is slow. How can I speed it up? (I am part of the development team of Webots and we often get this question so I hope it will help some people!)
  • 138
1 vote
1 answer
158 views

wheels are spinning but robot doesn't move

I build a new Robot with Webots (two wheel cart + 1) and build a simple controller. I can see the wheels are rotating when I start the robot, but robot is not moving at all. I am very new to Webots ...
  • 13
0 votes
1 answer
118 views

How can I draw in the 3D window in Webots?

I would like to draw some text or objects in the 3D view of Webots, how can I do that?
1 vote
1 answer
89 views

Create object that is invisible to the RangeFinder sensor

The title says it all. I would like to have object that the rangeFinder can't see. This would help me to model real life shiny objects for a ToF sensor in webots. Any suggestions?
  • 11
2 votes
1 answer
56 views

How to change the controller in Webots?

I'm rather new at Webots. How do I change the controller for a node to another controller code in a different location? I'm having trouble changing the code for an e-puck. The edit controller always ...
  • 21
0 votes
1 answer
154 views

Is it possible to immobilize one part of a robot?

I need to fix one part of my robot to the static environment. Can this be done in Webots? I'm using R2022b.
0 votes
1 answer
346 views

Why is Webots running so slow on my computer?

The provided sample simulations are running very slowly in Webots. How can I improve this? I am using Webots R2022b on Ubuntu 22.04.
0 votes
1 answer
46 views

Read device value from another robot controller in Webots

I'm using Webots R2022b and I would like to have a supervisor controller that applies an algorithm on the camera data recorded by the Mavic2Pro drone on an another robot. But, when calling the ...
1 vote
1 answer
231 views

How to import 3D models in Webots?

I have 3D models with UV mapping and textures in Blender and I would like to import them in Webots. Can you please recommend the best way to do this?
0 votes
0 answers
113 views

Webots Inverse Kinematics on Differential Drive Robot

I'm learning Webots these days and have gone through their example project on inverse Kinematics.(https://cyberbotics.com/doc/guide/irb4600-40) In their example project they are testing Inverse ...
  • 1
0 votes
2 answers
58 views

Is it possible to use coordinates to modify the floor into a polygon in Webots?

I'm using Webots to model an irregular polygon floor for a coverage problem. I want to define the floor using the coordinates of the vertices. So far I have been able to generate an irregular polygon ...
  • 1
0 votes
1 answer
71 views

what are the main steps to build a swarm robots system and train it to achieve foraging task using deep Q network

I studied reinforcement learning deeper and prepared myself to use Webots, and when I decided to build a swarm robots system and drive it by deep_Q_networks I feel too confused how can I begin and is ...
  • 1
1 vote
1 answer
113 views

How can I use the pen Node on my custom robot in webots?

I am starting to attempt a new project about a mechanical arm using a pen to draw random things as I move the robot's arm. so to do that Webots already has a node named "Pen" (Webots doc, ...
1 vote
1 answer
88 views

How can I get the equations of motion used in webots?

I am trying to use the webots platform for developing controllers. I need the differential equations governing the motion of the robots. How can I get the equations of motion used in webots?
0 votes
0 answers
45 views

Controller Design Using Webots! (Heading, Velocity, tilt,balance)

I am trying to design and implement certain controllers for a robot. I am currently designing controllers for the robot, where it aims to control the Heading, Velocity, Tilt, Balance of the robot. ...
1 vote
1 answer
371 views

Matlab Simulation using Webots!

I am trying to run this youbot ( sample world) from webots, where the controller is implemented in MATLAB, on running the code it pops out the following error seen in the picture attached. I have also ...
1 vote
1 answer
121 views

Controller Design using Webots!

I am trying to work on a Digital Twin of a Physical Robot which is used at my uni. I made a rough model of the robot using Webots (Open source). I need to design certain controllers aiming at the Tilt,...
0 votes
0 answers
110 views

Compile webots for Python 3.6 for Windows

I would appreciate if someone could assist me in compiling webots source for Python 3.6 to allow me and others to use TensorFlow with it. I already tried but apparently there is something not ...
  • 141
1 vote
1 answer
519 views

biped walking using Genetic Algorithm

I am working on a project but I lack advanced programming knowledge, especially about genetic algorithms. I am developing a prototype using WEBOTS 7.4.3 for the simulation. The project is to use ...
  • 11
7 votes
2 answers
2k views

Instantaneous Center of Rotation for a differential Drive Robot

I want to find the instantaneous center of rotation of a differential drive robot. Assuming I know that the robot will travel with a particular linear and angular velocity $(v,w)$ I can use the ...
  • 111
0 votes
1 answer
1k views

Resetting position of e-puck in Webots using Supervisor node - problem with getting a handle to the robot

I am writing a method (Java) that will reset the position of e-puck in Webots. I have been following tutorial on Supervisor approach. I have two controllers in my project: SupervisorController ...
7 votes
2 answers
706 views

Measuring speed of movement in Webots

I have been experimenting with different fitness functions for my Webots robot simulation (in short: I'm using genetic algorithm to evolve interesting behaviour). The idea I have now is to reward/...