Skip to content

Commit

Permalink
fix: pass message instance to send goal in action client
Browse files Browse the repository at this point in the history
  • Loading branch information
mehhdiii committed May 4, 2024
1 parent 0596d30 commit af00fb6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions jupyros/ros1/ros_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,9 @@ def action_client(action_name, action_msg, goal_msg, callbacks=None):
thread_map[action_name] = False

def send_goal(arg):
widget_dict_to_msg(goal_msg, widget_dict)
a_client.send_goal(goal_msg,
goal_msg_instance = goal_msg()
widget_dict_to_msg(goal_msg_instance, widget_dict)
a_client.send_goal(goal_msg_instance,
done_cb=done_handle,
active_cb=active_handle,
feedback_cb=feedback_handle
Expand Down

0 comments on commit af00fb6

Please sign in to comment.