I try to get the depth image of a Kinect camera using Python. The webots can detect Kinect device successfully and can enable it too. but, when I try to use getRangeImage function to get the depth values, the controller is crashed.
My code is as…
I am using while loop in order to do a function for a specific ammount of time. I use Webots and I use the getTime() function to get the simulation clock time.
The problem is that the program does not go into the loop function at all and when I…
Does anyone know how to synchronize the 2 clocks of Webots? the one of the console and the environment clock? because I am trying to use the internal python clock to define rotational movements and I cannot rotate at the desired angles because of…
I need to get access to the current status of traffic lights in Webots.
Checking the "generic_traffic_light.c" controller for a Generic traffic light, we have:
WbDeviceTag red_light;
red_light = wb_robot_get_device("ref…
I am creating a Webots project on OSX, where I am including the following:
#include
I get error
In file included from
/Applications/Webots/resources/projects/default/libraries/qt_utils/core/MainApplication.hpp:17:
…
I am following this short tutorial
and trying to compile Webots application (written in C) using GHC (Glasgow Haskell Compiler, Version 7.10.1) with following command:
ghc --make -no-hs-main -optc-O
-I"/Applications/Webots/include/controller/c/"…
I'm compiling C++ code for Webots (a robotic simulator), by means of makefiles, and I'm using the generic makefile Makefile.include Webots supplies to ease the process.
I build by own makefile, set a bunch of required variables and then call that…
I'm calling an external binary (Webots Simulator) in my cpp program, by calling fork() and execlp(), that takes on an argument that is the path of a specific file. There are no issues when the path to the file is valid and the file exists, however,…
I'm newbie in programming world especially in webots.
Do you guys have any ideas/tutorial to move e-puck robot to a specific position in webots?
In my case, I'm trying to move the e-puck robot to the start position and when the robot finish…
I used e-puck robot that avoid obstacle using braitenberg in Matlab code, the program is running without any stop, i try to put the counter such like:
counter = 1;
while wb_robot_step(TIME_STEP) ~= -1
if counter == 2000
save(counter,:)
…
I have implemented genetic algorithm (Java) that works on Webots simulated e-puck (PRO 7.0.3, OS X). What I want to do now is to display a graph that would show how fitness score is changing over time.
I have been trying to use JFreeChart, but…
I am trying to understand a sample code in Webots (robot simulation program).
I have faced this code :
Servo rightShoulderPitch = getServo("RShoulderPitch");
rightShoulderPitch.setPosition(1.5);
I do not understand what is meat by the first line.…
In Webots sim i have GPS (https://cyberbotics.com/doc/reference/gps?tab-language=ros) measurements
with 2 topics: coords as Point and speed_vector as Vector3 (returns the current GPS speed vector in meters per second). So, I need to create…
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 about surroundings.
Maybe someone familiar with…