Questions tagged [webots]
Webots is an open-source development environment used to model, program and simulate mobile robots.
235
questions
0
votes
0
answers
9
views
In WB Changing the texture while simulating
How to animate the texture of a shape in a proto or wbt file used in WeBots*?
There could have been c3d but it's not implemented, and we can't add gif as images.
*WeBots is a software to simulate ...
0
votes
0
answers
62
views
webots object recognition detect colors of object
I am trying to extract the colours of the recognised objects using the camera node in Webots
when the object recognition is turned on the camera would recognise and draw a box around objects (object ...
-1
votes
1
answer
41
views
printf a double variable with asterisk (a pointer)
I have this program in webots where I am extracting the color instance from the Wbcamerarecongnition and trying to print the color which according to documentation is made of 3D array for each color.
...
0
votes
0
answers
34
views
cv2 findArucoMarkers sees marker from far away but doesn't draw center point until closer
The Aruco marker is detected on the img but isn't fully detected because the cv2 drawing functions don't appear on the img until I'm closer to the marker.
I also have white boarders around the marker ...
0
votes
1
answer
25
views
How to make comments multiple lines and one line in .wbt files used as world files in WeBots
In WeBots and using programs with ROS2 you need to use world files with the .wbt extensions.
Does someone know how to comment one line or multiple lines ?
Thanks.
1
vote
0
answers
21
views
Can I run WeBots from Jupyter?
I am reading through Webots official tutorials, and I see they use their IDE, Pycharm etc. But can I use Jupyter? I like Jupyter's ability to run code block-by-block...
I see examples in the net, but ...
0
votes
0
answers
321
views
I got an error "Client wants topic xxxxx to have [xxxxx], but our version has [xxxxx]. " in Webots_ros
I try to echo recognition_objects topic in webots_ros.
rostopic echo /load_good_bot/camera_top/recognition_objects
But I get an error:
[ERROR] [1642210837.404276924]: Client [/...
0
votes
0
answers
13
views
webots&ROS simulation Mosse wheel axis is not ronsistent with the center of the wheel
There is wheel displacement in the process of rotation
0
votes
0
answers
47
views
Can't detect objects with using a radar sensor
I'm trying to build my own robot model with radar sensor and detect other robots models in order to make my robot follow them. To implement, I attached a radar device to my robot and made a controller ...
0
votes
0
answers
19
views
how connect Webots software to actual NAO robot ( hardware)
I have a webots simulation for Nao robot. now I want to test my simulation on the real robot. But didn't find any option to connect the webots to the Nao robot in real.
1
vote
1
answer
36
views
Can we change the field Parameters (Environment Parameters) in Webots using the controller?
I am a new user to Webots. I just wanted to know whether the parameters that we set in the environment be able to change through the controller.
As an example, When we add a Distance sensor, will it ...
0
votes
0
answers
31
views
How to make a group of robot move to one direction without collision
I'm new to webots, I want to make a group robot to go in a specific direction without being collabos and hitting each other
this is my code:
from controller import Robot
import math
if __name__ == &...
0
votes
0
answers
18
views
In webots, one command override the other
I have written a program fro Nao robot in webots. when it get the command to turn left, it does not complete the command and some other motion commands override it. I want my robot to complete one ...
0
votes
1
answer
31
views
Voice command to Nao Webots simulator
Am trying to do an Android app to control nao robot using a webots simulator
and am trying to send voice command to choreograph by my pc microphone so any ideas how to do that
1
vote
0
answers
69
views
Import .obj and .mtl files in Webots using a PROTO file
I am trying to import a .obj with a .mtl linked to it. When importing it using the 'Import 3D Model' option, everything works perfectly, the material is well kept:
But when I try to import it from a ...
0
votes
0
answers
70
views
How can I get the 3D Position values of a Robot/Object on webpage?
I am running the webots library on a webpage.
If I want to get the latest 3D Position values of a Robot when I dragged its X-axis(red axis), Y-axis(green axis) or Z-axis(blue axis),what should I do?
...
0
votes
0
answers
17
views
How do I implement the functionality to edit the controller in a Webots Web Simulation?
I'm trying to set up a simulation web service for Webots, but I'm having trouble getting the simulation controller edited.
In the Webots documentation there is a small description talking about ...
1
vote
1
answer
46
views
Can't connect controller to specific instance of Webots
I am trying using Webots in combination with stable-baselines3 for reeinforcment-learning purpose.
I tried using Webot with multiple instances, but connecting the controller to a specific one doesn't ...
0
votes
0
answers
71
views
webots error opengl and give black screen
hello guys I have some problem with webots when I run it give me an OpenGL error or give black screen
my GPU is GeForce 310m
Error :
error
pleas help me
1
vote
1
answer
32
views
Is it possible to monitor terminal for specific output?
I am using NodeJS to run webots by command line and have redirected the stdout too the node terminal. My problem is that I want to trigger an event based on a console log. I tried redirecting the ...
0
votes
1
answer
73
views
Webots pen camera recognition
I am trying to make a tic-tac-toe game in Webots.
I have 2 robot one that draw circle and the others draw crosses using the device "pen".
I need them to recognise when the other robot draws ...
0
votes
0
answers
21
views
How to limit the CPU utilization of Webots process?
I found that when I open multiple Webots, I cannot use cpulimit to limit the CPU utilization of each Webots process in FAST mode. I want to know how to limit the CPU utilization of Webots
0
votes
1
answer
41
views
Does Webots use at most one core of the CPU
I found that when I open multiple Webots, the maximum CPU utilization of each Webots in FAST mode is about 100. I want to know if each Webots uses up to 1 core of the CPU.
1
vote
1
answer
113
views
How do you add a PROTO node programmatically in Webots?
Using a Supervisor controller, is it possible to programmatically add Robot nodes to a running simulation which are defined in .proto files?
I tried using importMFNode, but it looks like it only ...
0
votes
1
answer
93
views
Thymio-II Webots Python simulator
I am trying to program Thymio-II using Python in Webots simulator. I have not understood how to access and control LEDs on Thymio-II. Are there any Python controller code examples for Thymio-II which ...
0
votes
1
answer
57
views
Limit the angle of the rotation motors
is it possible to limit the rotation motors of an industrial robot (IRB4600/40) in WeBots?
As an example: the motor should no longer have a freedom of 2 Pi in both directions, but only 1 Pi each.
I ...
0
votes
1
answer
181
views
how to get a device when I use supervisor?
There are a conveyor_belt and a ur10e robot in my webots env, I set ur10e's controller as extern, and I want to get the kinect image which is a children on the conveyor_belt.
ur10e
conveyor_belt
my ...
0
votes
1
answer
199
views
Webots Attribute Error while getting the robot references
I would like to reproduce the following tutorial, but when I tried to get the robot references theres always this Error:
"AttributeError: 'CartpoleRobot' object has no attribute 'getSelf'"
...
0
votes
0
answers
34
views
Webots: how to use SolidReference to build a linkage loop
I am trying to use Webots 2021a to build a planar 4-bar loop. The .wbt file is here.
The setup is shown below:
All yellow bars have the same length of 0.1 m and weight of 0.5 kg. The white bar0 is ...
0
votes
2
answers
78
views
How do you add buoyancy to a Webots robot without custom physics?
For instance, can I simulate underwater vehicles or helium blimps?
I know about the sample blimp world in projects/robots/epfl/lis/worlds/blimp.wbt but this uses a custom physics plugin that appears ...
0
votes
1
answer
262
views
So I want my robot to go to a desired coordinate on webots
I want my robot to go to a desired coordinate in the world. The only thing I could achieve was to make the robot go foward and turn everytime it runs into an obstacle, but it's all random, and I can't ...
0
votes
1
answer
87
views
Distance covered by wheels and the angle it turns by (physics and robotics)
Let me try and describe what I'm working on.
I'm trying to code the controller for a vacuum cleaning robot. The entire project is done within the Webots platform. How it works is that when the robot ...
0
votes
1
answer
170
views
Create Webots interface with other software using TCP / IP protocol in python
Webots allow me to connect my robot with other software through a TCP / IP protocol. It already comes with an implemented example, but all the code is in C I want to do a python implementation using ...
2
votes
0
answers
244
views
Genetic Algorithm Implementation for Self Balancing Robot
I have made a Self Balancing Robot in Webots that learns to balance itself with the help of a Genetic Algorithm. The setup works well enough but I'm not really sure how much of a good Genetic ...
0
votes
1
answer
33
views
Adding a video to Simulation Environment
I am using Webots to simulate an orchestra environment. I am trying an NAO robot to react to a video and audio, I am unable to include the video source in the environment.
Sample Video
Which ...
0
votes
1
answer
49
views
How to simulate soft ground in webots?
My robot is a Skid-Steered mobile robot ,which built in the soft sand, so I need to verify the dynamics of my wheeled mobile robot in the soft sand, that is, I want to give a torque to the wheels ...
0
votes
1
answer
72
views
Apply a User-defined Force on a Solid Node in Webots
I have been trying to add a 5KN force on the solid node named 'LLarm' on a robot in Webots from a matlab code using this function:
void wb_supervisor_node_add_force('LLarm', 5000, true)
but i get ...
-4
votes
1
answer
124
views
Coding a robot in Webots
As a beginner, I just installed Webots and imported 2 industrial robots (Kuka Youbot and the ABB IRB4600).
My questions:
Looking into each robot in the scene tree: I couldn't see any child parts under ...
1
vote
2
answers
134
views
`bash: webots: command not found` in my docker container because of multiple FROMs
I have a docker container that has Webots and ROS2 installed. However, running webots while inside the container returns bash: webots: command not found. Why?
Container that does run webots (but no ...
0
votes
1
answer
34
views
Code doesn't work inside a loop but works outside the loop
I have a piece of code which is showing some weird behaviour. The code works as expecred when it is kept out of the for loop but once I place it inside the for loop, it just keeps on repeating the ...
0
votes
1
answer
131
views
How to add pen node in predefined robots in webots
I wanted to draw the trajectory of epuck robot but can't seem to find how to integrate pen node in predefined robots such as epuck.
1
vote
1
answer
130
views
How to communicate between Android app and Webots robot
I have an Android app simulated on Android Studio and written in Java and a robot simulated in Webots using python. I am trying to figure out a way for them to communicate between each other so for ...
1
vote
1
answer
51
views
Webots - Adding animatedGeometry to my tracked robot gives strange shapes for the belt containing the wheels
Dears
Thanks in advance
If anybody can point me to the problem
I've made a tracked robot , and added the left track with 7 wheels, defined the bounding Objects to include the wheels, but I get a ...
1
vote
1
answer
119
views
How to include Webots in a Docker container build?
I want to add Webots to my Dockerfile, but I'm running into an issue. My current manual installation steps (from here) are:
$ # launch my Docker container without Webots
$ wget -qO- https://...
0
votes
0
answers
50
views
Fixing objects in their place in webots
I'm trying to put two different solid objects on a desk in webots and move them later. They are quiet similar but not the same. While one of the objects is nicely in its position, the other object is ...
2
votes
1
answer
814
views
Adding delay to robot controller in webots
I'm doing a pick and place task using UR3 in webots.
I need the robot to go to Pick position, grasp the object (close its fingers), and go to Place position. Something like following code:
while (...
0
votes
1
answer
165
views
Using webots to build a swarm of robots
In webots, is there any way to find the number of neighboring robots, to a given robot in any given radius?
An algorithm I am implementing requires a list of neighboring robots.
I got an idea that ...
1
vote
1
answer
422
views
Use Python to read camera image the world run very slow in webots
I try to use python to read webots camera image, and publish it by ros topic. But when I write like:
Img = camera.getImageArray() in the main loop, the simulation world will be very slow, speed like ...
1
vote
0
answers
33
views
HTC Vive doesn't display with Webots
I want to render my simulations (for example images of a Mavic2Pro camera) on a HTC Vive. When I select View > Virtual reality headset > Enable, nothing but the 3 axes within a black background ...
0
votes
1
answer
152
views
Webots Python3 "ModuleNotFound" Error MacOS
I'm trying to use python3 with Webots and have been finding trouble with the Webots path on my mac. Simply leaving the python command preference in webots as this calls the mac default python 2.7. If ...