ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

rclpy.action.ActionServer callback 'goal_handle' type

asked 2023-05-23 02:14:51 -0500

Erel gravatar image

Hi, When opening an action server it looks something like this:

self.move_up_action_server = ActionServer(self, MoveVerticalAction, 'move_vertical', self.move_up_callback)

With the callback being:

def move_up_callback(self, goal_handle):

I couldn't find anywhere what is the type of goal_handle. Seems like it has goal_handle.request, goal_handle.publish_feedback, goal_handle.succeed. Maybe some of you know what is the python type I should use?

Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-05-23 03:18:00 -0500

Erel gravatar image

updated 2023-05-23 03:18:27 -0500

Ok I realized I was stupid. I just used python's type() and found out it is rclpy.action.server.ServerGoalHandle. Problem solved.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2023-05-23 02:14:51 -0500

Seen: 76 times

Last updated: May 23 '23