From 7ee2f81c5929ca059f150ccf9f0c3d3a4a15d1d5 Mon Sep 17 00:00:00 2001 From: Koki Shinjo Date: Sat, 21 Oct 2023 20:08:46 +0900 Subject: [PATCH] [spot_ros_client] add list_Node for jsk_spot_behavior_server --- .../spot_ros_client/src/spot_ros_client/libspotros.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jsk_spot_robot/spot_ros_client/src/spot_ros_client/libspotros.py b/jsk_spot_robot/spot_ros_client/src/spot_ros_client/libspotros.py index d39fe2142e..f84de0a868 100644 --- a/jsk_spot_robot/spot_ros_client/src/spot_ros_client/libspotros.py +++ b/jsk_spot_robot/spot_ros_client/src/spot_ros_client/libspotros.py @@ -540,6 +540,9 @@ def reset_current_node(self, node): res = self._srv_client_reset_current_node(req) return res.success + def list_nodes(self): + return list(rospy.get_param("/spot_behavior_manager_server/map/nodes", {}).keys()) + # \brief call trajectory service # \param x x value of the target position [m] # \param x y value of the target position [m]