Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix conversion from minutes to milliseconds in rmf_demos_panel #176

Merged
merged 1 commit into from
Mar 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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