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
0 votes
1 answer
27 views

Webots ROS2 Tesla Example: Running Lane Following Code

I would like to know how to run the Webots ROS2 Tesla example that includes lane-following code using ROS 2. Specifically, I want to understand the steps required to set up the ROS 2 environment, ...
Emmanuel 's user avatar
0 votes
0 answers
10 views

How to use the DEF keyword for CadShape parts in Webots?

In Webots is it possible to define a DEF for defining a feature in order to reuse it more time in the same world It works very well we do the tutorials online creating a solid and then a shape. But it ...
Wilhelm's user avatar
  • 690
0 votes
1 answer
25 views

INFO: 'my_robot' extern controller: Waiting for local or remote connection on port 1234 targeting robot named 'my_robot'

I using ROS-Foxy on Ubuntu-20.04 installed using WSL 2. I also have installed R2023b version of webots on windows (the host). I followed the ROS-Foxy instructions to setup webots-ros2. However, when I ...
BABANGIDA ZACHARIAH's user avatar
1 vote
1 answer
49 views

How to get sensor data over a topic with webots_ros2 plugin?

I've installed webots 2023b and after I saw that a world with and inverted pendulum has been already shipped in the default installation directory, I decided to use that world for my project. ...
Wilhelm's user avatar
  • 690
1 vote
1 answer
40 views

How can I turn custom robot into a PROTO in Webots 2023?

I created a custom robot using the Robot Node by importing some meshes and creating boundary boxes with primitive shapes. I want to use it in another world, and I know the process involves creating a ...
Marcelo Ortiz's user avatar
1 vote
1 answer
25 views

How do I increase the resolution of the Webots Pen device?

I'm using the Pen device at the moment but I'm trying to get the resolution better finer so I can see smoother curves. I'm currently just using the Webots Grass appearance. Is scaling the used ...
Craig MS's user avatar
1 vote
1 answer
56 views

ROS2: name 'Node' is not defined

we are working on Webots environment with ROS2. when we launched the following example in the Webots-ros2 tutorial, we got the following error, could you help us to overcome that problem, thanks. The ...
nejattukenmez's user avatar
0 votes
3 answers
151 views

name 'Node' is not defined

when we launched the following example in the Webots-ros2 tutorial, we got the following error, could you help us to get rid of that problem, thanks. The example link: Setting up a robot simulation (...
nejattukenmez's user avatar
0 votes
1 answer
61 views

No module webots_ros2_driver

We would like to implement our controller developed by our team on CF2 simulator. We got the following error: ...
nejattukenmez's user avatar
1 vote
1 answer
33 views

How to access devices in webot robot?

I have trouble finding out what devices are in my robot currently I am using e-puck but I want to use a robot such as the Tesla car. I want to know what devices I can control. Example if e-puck has 2 ...
Alan L's user avatar
  • 11
1 vote
0 answers
41 views

Accessing Proto Fields of Underlying Proto Object in Webots

I'm working on integrating Webots with FIRST Robot Code's builtin simulation utilities. As part of this, I've created a few base protos which define common types of parts, and extended them with ...
CoolSpy3's user avatar
0 votes
0 answers
69 views

Simulation of Mavic2 pro isn't holding drone on air

I've been trying to perform the simulation of Mavic2 pro on Webots using Python but during simulation the drone doesn't hold on air. I've tried "https://github.com/cyberbotics/webots/tree/master/...
Pallavi Sharma's user avatar
1 vote
1 answer
23 views

How to fix this: WARNING: > Speaker "engine_speaker": Impossible to play ''. Make sure the file format is supported

The full warning is WARNING: Invalid URL 'C:/Users/xxxxx/OneDrive/Documents/my_Webots_learning/controllers/autonomous_vehicle/'. Sounds must be in '.mp3' or '.wav' format. WARNING: MyMicro_Car "...
Doug Frasher's user avatar
2 votes
0 answers
60 views

DJI Mavic Pro 2 drone in Webots nosedives at high speeds

I am using the webots_ros2_mavic package found here to simulate a drone in Webots. The drone is controlled by publishing a simple Twist message with linear and angular velocity components. I noticed ...
neo's user avatar
  • 21
1 vote
1 answer
48 views

How to import custom javascript modules from procedural proto nodes?

Is there a way to import my own javascript module from a procedural proto node? I have a .js file with some function defined that I would like to use in several .proto files. The file is called ...
Julieta Prieto Tarzia's user avatar
1 vote
1 answer
23 views

How to change the triangle limit in Webots that prevents shadows from a cadshape?

I am trying to get reasonable fidelity on a vehicle body I add as a shape to a vehicle. I model in Alias or Fusion and have good surface quality and don't want to lose that when my vehicle (robot) is ...
Doug Frasher's user avatar
2 votes
1 answer
52 views

Can't make new CadShape models have the same appearance as previous PBRAppearance

Has anyone else had issues with appearances while trying to use the new CadShape node instead of an imported model with a ...
Pyphais's user avatar
  • 21
2 votes
1 answer
117 views

In Webots is there a way to easily modify an existing robot (like the Mavic drone)

I am wondering if there's an easy way of modifying an existing robot, such as the Mavic drone, and then test how this modification worked. For example, I would like to change the shape or angle of the ...
Dr Sokoban's user avatar
2 votes
1 answer
59 views

Trouble Downloading Assets in Webots 2023a Version on MacOS

I've recently downloaded and installed the Webots 2023a version on my MacOS. The installation process went through without any issues. However, I'm encountering a problem when I try to install ...
Khilan S's user avatar
1 vote
0 answers
35 views

How can I model a monorail robot in Webots by importing a Solidwork CAD model of robot?

I am new to Webots. I have not good idea about the considerations what should I consider when import a SolidWork CAD model to the Webots. I have a SolidWork model of robot. But I have not good idea to ...
Chathuranga Weerasinghe's user avatar
2 votes
1 answer
298 views

How do I record video from webots simulated cameras?

I'm currently trying to find a way to record the output from Webots cameras to video files. Currently I'm saving frames every cycle and converting them to videos afterwards using Shotcut. Is there a ...
Craig MS's user avatar
0 votes
0 answers
60 views

How can I make the iRobot Create turn by the specified angle in Webots?

I am trying to use the iRobot Create in Webots for a project on vacuum cleaning. I am impressed by the fact that Webots contains the create.wbt world as well as ...
Paddey's user avatar
  • 1
1 vote
1 answer
69 views

Is it possible to import a .dae mesh file, with its materials, into a webots world?

I don't have an example right now (not at my computer), but I'm hoping to be able to import a world designed, modelled, and textured in Blender (poly count isn't an issue). I can import the model as a ...
Craig MS's user avatar
0 votes
0 answers
19 views

Set randomSeed to Webots World for correct reproducibility

I'm trying to set the seed value for random number generator and as mentioned in the documentation that value must be set in the randomSeed field from the ...
Angel Ayala's user avatar
2 votes
1 answer
26 views

Measure processor loading in Webots

Is there a way to measure the CPU usage or the processor loading per simulation time step? I essentially want a way to compare the computational cost of different controller implementations I reckon I ...
ssk255's user avatar
  • 23
1 vote
1 answer
174 views

Spawning robot from URDF Xacro file in webots

I am trying to import my xacro model like it's shown in the https://github.com/cyberbotics/webots_ros2/wiki/Tutorial-Ros2Supervisor-Import-your-Urdf-Robot tutorial, changing only the xacro and world ...
Guillaume Champain's user avatar
1 vote
1 answer
96 views

How can I set the sample rate/frequency for a Webots GPS module?

I'm trying to simulate a GPS module I have on a real robot (using ROS 2) which has a position update rate of 1Hz. Is it possible to set this in a GPS device? I'm importing the device directly to ...
Craig MS's user avatar
1 vote
1 answer
363 views

How do I integrate webots sensor plugins into a ros2 URDF/Xacro file?

I am trying to set up a Lidar, IMU, and depth camera in Webots on a ROS 2 robot in its xacro file (starting with just the Lidar). I currently have the following: ...
Craig MS's user avatar
2 votes
1 answer
204 views

How to convert Gazebo SDF worlds to Webots?

We are in the process of moving our warehouse simulation from Gazebo to Webots. We would like to set up a "realistic" warehouse environment in Webots. The factory sample already provides a ...
Gergely Kis's user avatar
1 vote
1 answer
80 views

Webots - Copy Paste a Robot

In Webots: I want to do a Predator/Prey simulation and need to spawn the exact same robot when an event occurs. How do I copy/paste a robot I have in my world scene tree. I build it my self therefore ...
HackMack's user avatar
1 vote
0 answers
61 views

WEBOTS - Connect a external Tkinter Script to main controller?

I have a WEBOTS Simulation with an automobile. Now while WEBOTS provides a camera overlay, I want to display the result of image processing along with sensor data in a comprehensive manner. For this I ...
senSMEM8's user avatar
1 vote
2 answers
117 views

How do I make a robot imported using urdf and ROS2 gravity? It just floats

I can't seem to find any examples with imported URDFs (the universal robot examples don't seem to have any physics settings beyond joint inertias etc). My robot has mass from the urdf: But it seems ...
Craig MS's user avatar
1 vote
1 answer
238 views

Are there any tutorials for transitioning from Gazebo Sim to Webots?

Are there any decent/recommended tutorials around for transitioning to webots from gazebo Sim? Or at least setting up existing ROS 2 robots in webots? I got a bit sick of trying to get the latest ...
Craig MS's user avatar
2 votes
1 answer
92 views

Webots: Spawn multiple nodes and disable collision between them, but not the environment

In Webots, I am spawning 10 vehicle nodes at the same time and position for reinforcement learning. I would like the vehicles to not interact with each other (collision and LIDAR) but still have ...
Computing Corn's user avatar
1 vote
1 answer
75 views

Webots hinge joint, physics issue

I am in the process of carrying out my thesis, I am using Webots software to measure the displacement of linear actuators and then carry out PID control for a manipulator of an ROV which is based on ...
kuba's user avatar
  • 25
2 votes
1 answer
56 views

Why does Webots 2022b not support VRLM97?

I am creating a complex robot and I do not know what is better: Use Webots 2023a and use CADshape. The .DAE doesn't look great because it's a mesh. Use Webots 2021b and import VRLM97. It looks much ...
Ernesto Flores's user avatar
1 vote
1 answer
127 views

How to add a new sensor to webots ros2 plugins?

I was wondering how can add a new node type to activate under the <device> tag in the URDF file. Looking in the webots_ros2 repository, I found that is ...
Angel Ayala's user avatar
2 votes
1 answer
150 views

How to Access Robot Fields Inside a Webots-ROS2 Plugin?

I'm running Webots R2023a where I have a robot node marked as Supervisor in Webots world (*.wbt file) to be controlled by an external node in ROS2 network. When writing a webots-ros2 plugin, I'm faced ...
S4JJ4D's user avatar
  • 23
0 votes
0 answers
26 views

Can webots start without windows?

I want to use the web interface of webots (--stream) instead of using the desktop application,How do you do it?
fuhui.he's user avatar
0 votes
1 answer
59 views

how to solve the emitter can't send the 'list' or 'set' in webots?these data is important to me

hey,everyone!when I want to use the emitter to send some 'list' or 'set' type data,I got errors.it told me these types data are unsupported to send for emitter.but these data is important for my code....
holiday shy's user avatar
2 votes
1 answer
30 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 ...
HackMack's user avatar
1 vote
1 answer
121 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 ...
maxew's user avatar
  • 11
1 vote
1 answer
86 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 ...
Jonathan Callejas's user avatar
1 vote
1 answer
306 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 ...
kuba's user avatar
  • 25
0 votes
0 answers
45 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 ...
huiduan's user avatar
0 votes
0 answers
21 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 ...
HackMack's user avatar
2 votes
1 answer
702 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 ...
Zxx's user avatar
  • 23
0 votes
2 answers
72 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 ...
Jonathan Ariel Callejas's user avatar
1 vote
1 answer
59 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?
Titouan's user avatar
  • 13
1 vote
1 answer
363 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 ...
YUSUKE TANAKA's user avatar