Skip to content

Commit a170ed5

Browse files
authored
Added motion time to the dummy nodes (#57)
1 parent 72c702e commit a170ed5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

feeding_web_app_ros2_test/feeding_web_app_ros2_test/MoveToDummy.py

+1
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ async def execute_callback(self, goal_handle):
204204
# return the distance (not time) the robot has yet to move.
205205
feedback_msg.motion_initial_distance = self.dummy_motion_time
206206
elapsed_time = self.get_clock().now() - motion_start_time
207+
feedback_msg.motion_time = elapsed_time.to_msg()
207208
elapsed_time_float = elapsed_time.nanoseconds / 1.0e9
208209
feedback_msg.motion_curr_distance = (
209210
self.dummy_motion_time - elapsed_time_float

0 commit comments

Comments
 (0)