Questions tagged [webots]

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

Links

255 questions
0
votes
0 answers

Webots R2019a revision 1 Crashed in Python API

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…
Farzaneh
  • 1
  • 1
0
votes
1 answer

Webots While loop does not work with getTime()

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

webots simulation synchronize

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

Access to Traffic Light status in Webots

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…
mask
  • 539
  • 1
  • 5
  • 18
0
votes
1 answer

Webots Qt framework libraries

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: …
Boris Mocialov
  • 3,439
  • 2
  • 28
  • 55
0
votes
1 answer

Compile controller code in trial version of webots

Is there any way to compile the controller in a trial version of webots I need any version allows me to compile the controller applied on e-puck robot
0
votes
1 answer

Linking with GHC

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/"…
Boris Mocialov
  • 3,439
  • 2
  • 28
  • 55
0
votes
1 answer

Required prebuild rule in generic Makefile

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…
joaocandre
  • 1,621
  • 4
  • 25
  • 42
0
votes
0 answers

execlp hanging after execution

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,…
joaocandre
  • 1,621
  • 4
  • 25
  • 42
0
votes
1 answer

How to program moving a robot(e-puck) to the specific position?

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…
Sofiah
  • 31
  • 1
  • 3
0
votes
1 answer

The e-puck_matlab program running without stop

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,:) …
0
votes
1 answer

How to display graph in Webots?

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…
Anna Pawlicka
  • 757
  • 7
  • 22
0
votes
2 answers

an object is created and assigned with out new or declaration

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.…
fmha
  • 3
  • 1
-1
votes
1 answer

How do i convert speed vector into Rall-Pitch-Yaw form to create transform?

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…
Dan
  • 11
  • 1
-1
votes
1 answer

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 about surroundings. Maybe someone familiar with…
1 2 3
16
17