Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running patrolling_sim #5

Open
LiuQiangOpenMind opened this issue Aug 15, 2018 · 5 comments
Open

Error running patrolling_sim #5

LiuQiangOpenMind opened this issue Aug 15, 2018 · 5 comments

Comments

@LiuQiangOpenMind
Copy link

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

@TDMDM
Copy link

TDMDM commented Mar 3, 2019

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,

@lilin-ll
Copy link

@LiuQiangOpenMind

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

@lilin-ll
Copy link

lilin-ll commented Aug 3, 2020

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!

@Libra8
Copy link

Libra8 commented Mar 25, 2022

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

@davidbsp
Copy link
Owner

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants