Questions tagged [webots]

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

Links

255 questions
0
votes
1 answer

Webots Visual Studio Cross-complitation

I'm writing a program for Webots in C++ in Visual Studio. I'm trying to cross-compile from the Webots software onto the e-puck1, but since I'm in VS it doesn't have the makefiles necessary to do so, as far as I know. I've tried to remake the…
0
votes
0 answers

Gripper falls apart when gripping

I'm trying to simulate a custom gripper in Webots. For this purpose, I use an active-passive connector to simulate the custom gripping mechanism. So far, so good. The gripping works fine. However, then I move the object together with the gripper.…
machinekoder
  • 196
  • 1
  • 9
0
votes
0 answers

RotationalMotors of double-joint robot

I'm writing a double joint robots and its controller for a forward kinematics example. An interesting thing is that the second rotational motor attached to the first rotational motor with a link starts moving to the target position only after the…
Inbae Jeong
  • 4,053
  • 25
  • 38
0
votes
1 answer

How to import Webots controller library in a simple python script in a ROS worskapce

Is there a way to import Webots controller library in a simple python script running a ROS node inside a ROS workspace? I have seen the Webots ROS_Python exmaple and understand the concept behind. But I am unable to import from controller import…
Tahir Mahmood
  • 305
  • 1
  • 11
0
votes
1 answer

What's the difference between "servo" and " HingeJoint"?

There are many papers that use "servo" to motor the robot, but the base nodes of Webots 2019a don't include "servo". what's the difference between "servo" and "HingeJoint"? Should I use the "servo" node if I want to know the joint position? The…
LING
  • 37
  • 3
0
votes
1 answer

'Undefined variable “matlab” or class “matlab.addons.installedAddons”' when running launch.m in MATLAB

I want to control a robot using MATLAB in Webots 2019a. When I start the simulation using launch.m, it always fails. The information of the error is: Undefined variable "matlab" or class "matlab.addons.installedAddons" How can I solve this…
LING
  • 37
  • 3
0
votes
0 answers

Where can I find the limits of the walking parameters of Robotis op 2 in Webots?

Webots have walking parameters in config.ini file for Robotis Op 2. I want to learn the limits of these parameters like X offset, foot size. Can you help me? Walking Parameters This appendix explains all the parameters that can be set in the…
0
votes
0 answers

Visual studio controller c++ for Webots crashed

I created a new controller for Webots in Visual Studio in c ++ (Wizard -> new project controller ...) but when I run the simulation the controller is crashed this is the code: Basically it is the controller that comes from deafult #include…
0
votes
1 answer

Changing spring constants after importing robot causes issues

I have to run an optimization on tendon stiffnesses in a modelled leg. Changing the spring constants manually causes no issues and the physical model seems to work well. The issue presents itself when I attempt to optimize for these values. Since…
0
votes
1 answer

How do we know if a sensor value has been updated or not?

Sensors are usually enabled with wb_XXX_enable(tag, sampling_period), and the sensor values can be retrieved with wb_XXX_get_values(tag). How do we know if the values retrieved with wb_XXX_get_values(tag) are new values? A naive approach would be…
Inbae Jeong
  • 4,053
  • 25
  • 38
0
votes
1 answer

Measuring vehicle dimensions

I would like to measure the distance between the rear wheel axis middle point until the driver's seat of the BMW X5 and Citroen CZero models available in WeBots. Can any of you suggest a program to measure such distance, or a way to get it from the…
Nelson
  • 67
  • 5
0
votes
1 answer

Webots: Line follower sensor returning inconsistent values

I'm trying to make a line follower in Webots using the infrared distance sensors (same as the e-puck line follower). The problem is that the sensors return very inconsistent values ranging from 250-550 on black surface and between 700-1100 on white…
Klemen
  • 3
  • 1
0
votes
0 answers

connecting webots to visual studio

I am using the last version (2019) for both webots and visual studio, what i'm trying to do is to connect these two according to https://cyberbotics.com/doc/guide/using-visual-studio-with-webots. but once i put $(ProjectName).exe in Linker > General…
lighting
  • 400
  • 2
  • 13
0
votes
1 answer

How to get TouchSensor nested under joint in Webots (Python API)

I wish to have a touchsensor on the end of a moving arm. However, through the Python API, getDevice('touch_sensor') only returns sensors that are directly under the Robot parent. Is there a way I can either get a sensor that is nested (under a…
LF Deeds
  • 21
  • 1
0
votes
1 answer

How to transfer code from webots to a real e-puck2 robot?

According to https://www.cyberbotics.com/doc/guide/epuck#bluetooth-remote-control I can remotely control from webots e-puck robots. I have e-puck2 robots, can I do it for this version of robots? Or can I cross-compile it and upload to e-puck2? If…