Skip to content

Commit

Permalink
Fix issue #945
Browse files Browse the repository at this point in the history
Signed-off-by: Sukhvansh2004 <[email protected]>
  • Loading branch information
Sukhvansh2004 committed Jan 14, 2025
1 parent 01578e7 commit 3ae96f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ros2action/ros2action/verb/send_goal.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def send_goal(action_name, action_type, goal_values, feedback_callback):
goal = action_module.Goal()

try:
set_message_fields(goal, goal_dict)
set_message_fields(goal, goal_dict, expand_header_auto=True, expand_time_now=True)
except Exception as ex:
return 'Failed to populate message fields: {!r}'.format(ex)

Expand Down
2 changes: 1 addition & 1 deletion ros2service/ros2service/verb/call.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def requester(service_type, service_name, values, period):
request = srv_module.Request()

try:
set_message_fields(request, values_dictionary)
set_message_fields(request, values_dictionary, expand_header_auto=True, expand_time_now=True)
except Exception as e:
return 'Failed to populate field: {0}'.format(e)

Expand Down

0 comments on commit 3ae96f6

Please sign in to comment.