webots

Controlling Webots simulation step

折月煮酒 提交于 2020-02-05 19:56:18
问题 Is it possible to calculate the Webots simulation step programatically, i.e. each time one module finishes its planing than the Webots should calculate the next simulation step dependent upon the output of the module. I have checked the Supervisor mode but it does not seems to have some control over the simulation run apart from setting the simulation mode. Edit 1: How to "execute one simulation step (ctrl + 1 in the Webots environment)" from the script after the planning completion of one

Controlling Webots simulation step

被刻印的时光 ゝ 提交于 2020-02-05 19:53:18
问题 Is it possible to calculate the Webots simulation step programatically, i.e. each time one module finishes its planing than the Webots should calculate the next simulation step dependent upon the output of the module. I have checked the Supervisor mode but it does not seems to have some control over the simulation run apart from setting the simulation mode. Edit 1: How to "execute one simulation step (ctrl + 1 in the Webots environment)" from the script after the planning completion of one

Ploting an image with 'imshow' of opencv in webots

大憨熊 提交于 2020-01-04 13:47:08
问题 hi I am using opencv in webots and I want to plot an image . This is the controller: #include <webots/Robot.hpp> #include "opencv2/core/core.hpp" #include "opencv2/highgui/highgui.hpp" #include "opencv2/imgproc/imgproc.hpp" #include <iostream> using namespace webots; using namespace cv; int main(int argc, char **argv){ Robot *robot = new Robot(); int timeStep = (int) robot->getBasicTimeStep(); while (robot->step(timeStep) != -1) { Mat a1 = imread("/home/alireza/Desktop/1.jpg"); cv::imshow(

Robot Model drops off the floor after running the simulation

拟墨画扇 提交于 2019-12-10 18:51:54
问题 I imported a model in webots simulation from URDFs in ROS. The robot is a tricycle drive with 3 castor wheels. I have followed the wheel style as in the webots style guide and changed accordingly. My problem is that when I run the simulation the robot's wheels drops off the floor and is not able to move. Just chassis is on the floor and the wheels hangs down. 回答1: Your robot is probably too heavy for the physics configuration. You can fix this by changing the fields values of the WorldInfo