The class publishes information about robot's map and location in ROS-compatible format so it can be shown by rviz. More...
#include <rviz_grid_viewer.h>
Public Member Functions | |
RvizGridViewer (ros::Publisher pub, const double show_map_rate, std::string frame_odom, std::string frame_robot_pose) | |
void | show_map (const GridMap &map) |
void | show_robot_pose (const RobotState &r) |
Private Attributes | |
std::string | _frame_odom |
std::string | _frame_robot_pose |
ros::Time | _last_pub_time |
ros::Publisher | _map_pub |
tf::TransformBroadcaster | _tf_brcst |
const double | map_publishing_rate |
The class publishes information about robot's map and location in ROS-compatible format so it can be shown by rviz.
Definition at line 17 of file rviz_grid_viewer.h.
|
inline |
Initializes a map and robot's position publisher.
pub | A map publisher to ROS. |
Definition at line 24 of file rviz_grid_viewer.h.
|
inline |
Publishes given GridMap as a ROS message.
map | A grid map in framework's internal format. |
Definition at line 48 of file rviz_grid_viewer.h.
|
inline |
Publishes a robot state as TF message.
r | A robot state in internal format. |
Definition at line 33 of file rviz_grid_viewer.h.
|
private |
Definition at line 81 of file rviz_grid_viewer.h.
|
private |
Definition at line 82 of file rviz_grid_viewer.h.
|
private |
Definition at line 78 of file rviz_grid_viewer.h.
|
private |
Definition at line 77 of file rviz_grid_viewer.h.
|
private |
Definition at line 79 of file rviz_grid_viewer.h.
|
private |
Definition at line 80 of file rviz_grid_viewer.h.