Function geometric_shapes::constructMarkerFromShape(const shape_msgs::msg::Mesh&, visualization_msgs::msg::Marker&, bool)

Function Documentation

void geometric_shapes::constructMarkerFromShape(const shape_msgs::msg::Mesh &shape_msg, visualization_msgs::msg::Marker &marker, bool use_mesh_triangle_list = true)

Convert a shape_msgs::msg::Mesh shape_msg to a visualization_msgs::msg::Marker marker.

The corresponding marker will be constructed as a LINE_LIST (if use_mesh_triangle_list is false) or as a TRIANGLE_LIST (if use_mesh_triangle_list is true). On incorrect input, this function throws a std::runtime_error.