Skip to content

Commit 466acb0

Browse files
authored
fix: pass message instance to send goal in action client (#163)
1 parent f24af36 commit 466acb0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

jupyros/ros1/ros_widgets.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,9 @@ def action_client(action_name, action_msg, goal_msg, callbacks=None):
415415
thread_map[action_name] = False
416416

417417
def send_goal(arg):
418-
widget_dict_to_msg(goal_msg, widget_dict)
419-
a_client.send_goal(goal_msg,
418+
goal_msg_instance = goal_msg()
419+
widget_dict_to_msg(goal_msg_instance, widget_dict)
420+
a_client.send_goal(goal_msg_instance,
420421
done_cb=done_handle,
421422
active_cb=active_handle,
422423
feedback_cb=feedback_handle

0 commit comments

Comments
 (0)