simulation.utils.ros_base.visualization module¶
Utility functions for visualizing ROS messages in rviz.
Reference¶
-
get_marker_for_points(points: List[simulation.utils.geometry.point.Point], *, frame_id: str, type: int = 4, rgba: List[float] = [0, 0, 0, 1], id: int = 0, ns: Optional[str] = None, duration: float = 1) → visualization_msgs.msg._Marker.Marker[source]¶ Rviz marker message from a list of points.
- Parameters
points – Points to visualize
frame_id – Name of the points’ coordinate frame (e.g. world, vehicle, simulation)
type – Rviz marker type
rgba – Color of the marker
id – Marker id
ns – Rviz namespace
duration – Marker will be shown for this long
- Returns
Marker msg that rviz can display