Template Function beluga_ros::assign_obstacle_map

Function Documentation

template<typename MapType, int NDim>
std::pair<beluga_ros::msg::MarkerArray, bool> beluga_ros::assign_obstacle_map(const beluga::SparseValueGrid<MapType, NDim> &grid, beluga_ros::msg::MarkerArray &message)

Assign an ellipsoid to each cell of a SparseValueGrid. A cube is used instead if the distribution of the cell is not suitable for the rotation matrix creation.

Parameters:
  • grid – A SparseValueGrid that contains cells representing obstacles.

  • message[out] A MarkerArray that will contain the shapes

Template Parameters:
Returns:

A std::pair with the MarkerArray containing the shapes and a boolean indicating if at least one cube was generated.