#include <odometer_base.h>
Public Member Functions | |
OdometerBase () | |
Protected Member Functions | |
std::string | getSensorFrameId () const |
void | integrateAndPublish (const tf::Transform &delta_transform, const ros::Time ×tamp) |
bool | resetPose (std_srvs::Empty::Request &, std_srvs::Empty::Response &) |
void | setPoseCovariance (const boost::array< double, 36 > &pose_covariance) |
void | setSensorFrameId (const std::string &frame_id) |
void | setTwistCovariance (const boost::array< double, 36 > &twist_covariance) |
Private Attributes | |
std::string | base_link_frame_id_ |
tf::Transform | integrated_pose_ |
ros::Time | last_update_time_ |
std::string | odom_frame_id_ |
ros::Publisher | odom_pub_ |
boost::array< double, 36 > | pose_covariance_ |
ros::Publisher | pose_pub_ |
bool | publish_tf_ |
ros::ServiceServer | reset_service_ |
std::string | sensor_frame_id_ |
tf::TransformBroadcaster | tf_broadcaster_ |
tf::TransformListener | tf_listener_ |
boost::array< double, 36 > | twist_covariance_ |
Base class for odometers, handles tf's, odometry and pose publishing. This can be used as base for any incremental pose estimating sensor. Sensors that measure velocities cannot be used.
Definition at line 20 of file odometer_base.h.
viso2_ros::OdometerBase::OdometerBase | ( | ) | [inline] |
Definition at line 47 of file odometer_base.h.
std::string viso2_ros::OdometerBase::getSensorFrameId | ( | ) | const [inline, protected] |
Definition at line 81 of file odometer_base.h.
void viso2_ros::OdometerBase::integrateAndPublish | ( | const tf::Transform & | delta_transform, |
const ros::Time & | timestamp | ||
) | [inline, protected] |
Definition at line 96 of file odometer_base.h.
bool viso2_ros::OdometerBase::resetPose | ( | std_srvs::Empty::Request & | , |
std_srvs::Empty::Response & | |||
) | [inline, protected] |
Definition at line 191 of file odometer_base.h.
void viso2_ros::OdometerBase::setPoseCovariance | ( | const boost::array< double, 36 > & | pose_covariance | ) | [inline, protected] |
Definition at line 86 of file odometer_base.h.
void viso2_ros::OdometerBase::setSensorFrameId | ( | const std::string & | frame_id | ) | [inline, protected] |
Definition at line 76 of file odometer_base.h.
void viso2_ros::OdometerBase::setTwistCovariance | ( | const boost::array< double, 36 > & | twist_covariance | ) | [inline, protected] |
Definition at line 91 of file odometer_base.h.
std::string viso2_ros::OdometerBase::base_link_frame_id_ [private] |
Definition at line 32 of file odometer_base.h.
Definition at line 38 of file odometer_base.h.
Definition at line 40 of file odometer_base.h.
std::string viso2_ros::OdometerBase::odom_frame_id_ [private] |
Definition at line 31 of file odometer_base.h.
Definition at line 24 of file odometer_base.h.
boost::array<double, 36> viso2_ros::OdometerBase::pose_covariance_ [private] |
Definition at line 43 of file odometer_base.h.
Definition at line 25 of file odometer_base.h.
bool viso2_ros::OdometerBase::publish_tf_ [private] |
Definition at line 35 of file odometer_base.h.
Definition at line 27 of file odometer_base.h.
std::string viso2_ros::OdometerBase::sensor_frame_id_ [private] |
Definition at line 30 of file odometer_base.h.
Definition at line 34 of file odometer_base.h.
Definition at line 33 of file odometer_base.h.
boost::array<double, 36> viso2_ros::OdometerBase::twist_covariance_ [private] |
Definition at line 44 of file odometer_base.h.