Derived class from GridScanMatcherObserver to publish the robot pose. More...
Public Member Functions | |
virtual void | on_pose_update (const RobotState &pose, const TransformedLaserScan &scan, double score) override |
virtual void | on_scan_test (const RobotState &pose, const TransformedLaserScan &scan, double score) override |
Private Member Functions | |
void | publish_transform (const std::string &frame_id, std::string frame_odom, const RobotState &p) |
Private Attributes | |
std::string | _frame_odom |
Derived class from GridScanMatcherObserver to publish the robot pose.
This class provides functions to publish the robot pose in a ROS topic.
Definition at line 35 of file tiny_slam.cpp.
virtual void PoseScanMatcherObserver::on_pose_update | ( | const RobotState & | pose, |
const TransformedLaserScan & | scan, | ||
double | score | ||
) | [inline, override, virtual] |
Publishes the best found robot pose.
[in] | pose | - the robot location in the space. |
Reimplemented from GridScanMatcherObserver.
Definition at line 51 of file tiny_slam.cpp.
virtual void PoseScanMatcherObserver::on_scan_test | ( | const RobotState & | pose, |
const TransformedLaserScan & | scan, | ||
double | score | ||
) | [inline, override, virtual] |
Publishes the robot pose tested by the scan matcher at the moment.
[in] | pose | - the robot location in the space. |
Reimplemented from GridScanMatcherObserver.
Definition at line 42 of file tiny_slam.cpp.
void PoseScanMatcherObserver::publish_transform | ( | const std::string & | frame_id, |
std::string | frame_odom, | ||
const RobotState & | p | ||
) | [inline, private] |
Definition at line 57 of file tiny_slam.cpp.
std::string PoseScanMatcherObserver::_frame_odom [private] |
Definition at line 61 of file tiny_slam.cpp.