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

Stopping and starting the sheriff complains about needing to remove all commands before loading #28

Open
heuristicus opened this issue Jun 8, 2021 · 0 comments

Comments

@heuristicus
Copy link

While working with spot and connecting to the deputy there, sometimes when stopping and starting the sheriff this output would happen, followed by the terminal freezing:

rosrun procman_ros sheriff -l `rospack find spot_runtime_drs`/config/procman/spot.pmd
Spawn deputy!
setting PATH to /home/michal/robots/drs/catkin_ws/devel/lib/procman_ros:/home/michal/robots/drs/catkin_ws/devel/bin:/opt/ros/noetic/bin:/snap/bin:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
Traceback (most recent call last):
  File "/home/michal/robots/drs/catkin_ws/devel/lib/procman_ros/sheriff", line 15, in <module>
    exec(compile(fh.read(), python_script, 'exec'), context)
  File "/home/michal/robots/drs/catkin_ws/src/procman_ros/scripts/sheriff", line 3, in <module>
    procman_ros.sheriff_gtk.sheriff_gtk.main()
  File "/home/michal/robots/drs/catkin_ws/src/procman_ros/python/src/procman_ros/sheriff_gtk/sheriff_gtk.py", line 794, in main
    gui.load_config(cfg)
  File "/home/michal/robots/drs/catkin_ws/src/procman_ros/python/src/procman_ros/sheriff_gtk/sheriff_gtk.py", line 544, in load_config
    self._do_load_config()
  File "/home/michal/robots/drs/catkin_ws/src/procman_ros/python/src/procman_ros/sheriff_gtk/sheriff_gtk.py", line 526, in _do_load_config
    self.sheriff.load_config(self.cfg_to_load)
  File "/home/michal/robots/drs/catkin_ws/src/procman_ros/python/src/procman_ros/sheriff.py", line 1122, in load_config
    raise RuntimeError("Remove all commands before loading a config file")
RuntimeError: Remove all commands before loading a config file
[ INFO] [1623147637.006644720]: Subscribing to pm orders

The situations in which this happens is not clear. I observed it once when the clocks on spot and my laptop were out of sync so the sheriff was complaining and all commands on spot were in the unknown status.

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

1 participant