Function rmf_traffic_ros2::convert(const rmf_traffic_msgs::msg::Trajectory&)

Function Documentation

rmf_traffic::Trajectory rmf_traffic_ros2::convert(const rmf_traffic_msgs::msg::Trajectory &from)

Convert from a Trajectory message to a Trajectory instance.

If the Trajectory is malformed, this will throw a std::runtime_error describing the issue.