Template Function grid_map::multiArrayMessageMapToMatrixEigen

Function Documentation

template<typename EigenType_, typename MultiArrayMessageType_>
bool grid_map::multiArrayMessageMapToMatrixEigen(MultiArrayMessageType_ &m, EigenType_ &e)

Maps a ROS xxxMultiArray message into an Eigen matrix. Both column- and row-major message types are allowed.

Parameters:
  • m[in] the ROS message to be converted.

  • e[out] the Eigen matrix to which the data will be mapped.

Returns:

true if successful.