Skip to content
This repository has been archived by the owner on Jul 22, 2021. It is now read-only.

schedule visualizer #286

Answered by mxgrey
txlei asked this question in Q&A
Feb 5, 2021 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

Most of the time when a participant isn't appearing in the visualizer, it's because they are setting their itinerary using a different reference frame for time than what the visualizer is using (e.g. the participant is using system time while the schedule is visualizing simulation time).

To ensure consistent time frames, I recommend always taking the value of rclcpp::Node::now and passing it through rmf_traffic_ros2::convert to get the appropriate rmf_traffic::Time value to pass onto your rmf_traffic::schedule::Participant. After that, make sure all your ROS nodes have a consistent value for their use_sim_time parameter. You can find an example of getting the current "ROS time" and conver…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@txlei
Comment options

Comment options

You must be logged in to vote
1 reply
@txlei
Comment options

Answer selected by txlei
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants