Closed boilerbots closed 1 year ago
which makes sense because there isn't any py_trees_ros_interfaces service topic.
It seems to be failing ot find the type definition of the service, not the service itself.
py_trees_ros_interfaces
is a package which provides the GetBlackboardVariables
service definition. Do you have ros-humble-py-trees-ros-interfaces
installed?
I was using the released source package py_trees_ros_interfaces-2.1.0, but have updated to the latest branch and it still fails. I have begun to write my own tree and I can launch it and both py-trees-blackboard-watcher and py-trees-tree-viewer work just fine.
My project is not launching by having the launch python import the source and use the generate_launch_description function as you have done in the demo scripts.
So I guess the problem could be isolated to the tutorials and not a general problem.
Ah...digging a little further, you launched:
ros2 launch py_trees_ros_tutorials mock_robot_launch.py
This is not launching a behaviour tree (and hence no service). It launches a few nodes to 'mock' a robot. The tree gets launched whenever you launch one of the tutorial_<number>_name.py
launchers. e.g.
ros2 launch py_trees_ros_tutorials tutorial_one_data_gathering_launch.py
Ahh yes you are right, I failed at step 1, sorry about that. If I would have tried something else it would have worked.
I could be totally doing something wrong but while waiting for the Humble release I added the latest source for py_trees_ros, py_trees, py_trees_js and py_trees_ros_tutorials to my projects src tree and built everything.
I can launch any of the tutorials and they all seem to run correctly but I can not run any of the tools such as py-trees-blackboard-watcher without getting the following error:
which makes sense because there isn't any py_trees_ros_interfaces service topic. For example, I launch
and I list the services
Is something in Humble not starting a service in the expected namespace?