Skip to content

Commit

Permalink
Fix conversion from minutes to milliseconds (#176)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael X. Grey <grey@openrobotics.org>
  • Loading branch information
mxgrey committed Mar 30, 2023
1 parent 459919b commit ca7bb0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rmf_demos_panel/rmf_demos_panel/dispatcher_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def __convert_task_description(self, task_json):
rclpy.spin_once(self, timeout_sec=0.0)
rostime_now = self.get_clock().now()
unix_milli_time = round(rostime_now.nanoseconds/1e6)
unix_milli_time += int(task_json["start_time"]*60)
unix_milli_time += int(task_json["start_time"]*60*1000)
request["unix_millis_earliest_start_time"] = unix_milli_time
except KeyError as ex:
return None, f"Missing Key value in json body: {ex}"
Expand Down

0 comments on commit ca7bb0f

Please sign in to comment.