patrolling_sim icon indicating copy to clipboard operation
patrolling_sim copied to clipboard

Error running patrolling_sim

Open LiuQiangOpenMind opened this issue 7 years ago • 5 comments

I am a newbie in ROS and learning to run patrolling_sim.

Environment: Windows 7 64-bit host, VM (Ubuntu 16.04 LTS and ROS Kinetic).

Following instruction from README.md.

  1. I copied the code of patrolling_sim (https://github.com/davidbsp/patrolling_sim) to /home/top/catkin_ws/src/;
  2. I have succeeded in compiling the source code('catkin_make');
  3. I start the script './start_experiment.py', and pressed the button 'start experiment' to run a simulation.

However, I have some trouble in running the simulation as follows:

  1. Runtime window show that “ERROR: Parameter [/SimulationRunning] is not set”.img01

  2. Robots in the visualization window are always static, which is different from what the video show. (http://wiki.ros.org/patrolling_sim). img02

Therefore, I tried to solve this problem by modifying the script file (start_experiment.py). Unfortunately, the problem is still unsolved. img03

LiuQiangOpenMind avatar Aug 15 '18 03:08 LiuQiangOpenMind

Hi @LiuQiangOpenMind ,

I'm also a newbie in ROS and I have now exactly the same problem as you. When I run a simulation, the error message "ERROR: parameter [/simulation_running] is not set" appears and robots don't move in the visualization window. If you have found a solution since, what was the problem and how have you fixed it?

Thanks in advance,

TDMDM avatar Mar 03 '19 15:03 TDMDM

@LiuQiangOpenMind

你好!我也遇到了这个问题,请问你后面是咋解决的啊?

lilin-ll avatar Jul 30 '20 12:07 lilin-ll

I solved the problem by referring to the link https://github.com/hebahG/sim_patrolling_wth_Ontology_PC. The core code are `

cd project folder

catkin_make

source devel/setup.bash

catkin_make

source devel/setup.bash

cd src/patrolling_sim

./start_experiment.py

`

I hope it's useful to all of you!

lilin-ll avatar Aug 03 '20 12:08 lilin-ll

Hi @LiuQiangOpenMind I also have this problem(robots always keep still), and the latest answer fails to solve this problem. Have you found a solution to the problem? 3q

Libra8 avatar Mar 25 '22 13:03 Libra8

@Libra8 have you tested again with the latest commits? Which ROS version are you using? please note that you'll need to compile this version of stage_ros for compatibility with ROS Noetic.

davidbsp avatar May 12 '22 11:05 davidbsp