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

SkillManagerNode startup needs to turn on and off spinning #98

Open
matthias-mayr opened this issue Mar 1, 2024 · 0 comments
Open

SkillManagerNode startup needs to turn on and off spinning #98

matthias-mayr opened this issue Mar 1, 2024 · 0 comments
Assignees
Labels
enhancement ROS 2 Issue affects ROS 2

Comments

@matthias-mayr
Copy link
Member

Currently the SkillManagerNode that brings up the skill manager needs spinning during the __init__ function to register the skills with the world model:
https://github.com/RVMI/skiros2/blob/ed5bc907f8509f8223bf5c75ff2b7bcf9ff056e7/skiros2_skill/skiros2_skill/ros/skill_manager.py#L187-L188

However after we're done starting up the SkillManagerNode, we enter a rclpy.spin. This means that the WorldModelInterface that is used inside the SkillManager must not spin anymore.
https://github.com/RVMI/skiros2/blob/ed5bc907f8509f8223bf5c75ff2b7bcf9ff056e7/skiros2_skill/skiros2_skill/ros/skill_manager.py#L498-L501

Currently this is resolved by setting an allow_spinning variable in the WorldModelInterface that is used here:
https://github.com/RVMI/skiros2/blob/ed5bc907f8509f8223bf5c75ff2b7bcf9ff056e7/skiros2_world_model/skiros2_world_model/ros/ontology_interface.py#L299-L310

That works, but it's not a very sound solution.

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

No branches or pull requests

2 participants