Public Member Functions | Private Member Functions | Private Attributes | List of all members
kobuki::Odometry Class Reference

Odometry for the kobuki node. More...

#include <odometry.hpp>

Public Member Functions

bool commandTimeout () const
 
void init (ros::NodeHandle &nh, const std::string &name)
 
 Odometry ()
 
void resetOdometry ()
 
void resetTimeout ()
 
const ros::Durationtimeout () const
 
void update (const ecl::LegacyPose2D< double > &pose_update, ecl::linear_algebra::Vector3d &pose_update_rates, double imu_heading, double imu_angular_velocity)
 

Private Member Functions

void publishOdometry (const geometry_msgs::Quaternion &odom_quat, const ecl::linear_algebra::Vector3d &pose_update_rates)
 
void publishTransform (const geometry_msgs::Quaternion &odom_quat)
 

Private Attributes

std::string base_frame
 
ros::Duration cmd_vel_timeout
 
ros::Time last_cmd_time
 
tf::TransformBroadcaster odom_broadcaster
 
std::string odom_frame
 
ros::Publisher odom_publisher
 
geometry_msgs::TransformStamped odom_trans
 
ecl::LegacyPose2D< double > pose
 
bool publish_tf
 
bool use_imu_heading
 

Detailed Description

Odometry for the kobuki node.

Definition at line 39 of file odometry.hpp.

Constructor & Destructor Documentation

kobuki::Odometry::Odometry ( )

Definition at line 26 of file odometry.cpp.

Member Function Documentation

bool kobuki::Odometry::commandTimeout ( ) const

Definition at line 79 of file odometry.cpp.

void kobuki::Odometry::init ( ros::NodeHandle nh,
const std::string name 
)

Definition at line 33 of file odometry.cpp.

void kobuki::Odometry::publishOdometry ( const geometry_msgs::Quaternion &  odom_quat,
const ecl::linear_algebra::Vector3d &  pose_update_rates 
)
private

Definition at line 123 of file odometry.cpp.

void kobuki::Odometry::publishTransform ( const geometry_msgs::Quaternion &  odom_quat)
private

Definition at line 110 of file odometry.cpp.

void kobuki::Odometry::resetOdometry ( )
inline

Definition at line 46 of file odometry.hpp.

void kobuki::Odometry::resetTimeout ( )
inline

Definition at line 48 of file odometry.hpp.

const ros::Duration& kobuki::Odometry::timeout ( ) const
inline

Definition at line 47 of file odometry.hpp.

void kobuki::Odometry::update ( const ecl::LegacyPose2D< double > &  pose_update,
ecl::linear_algebra::Vector3d &  pose_update_rates,
double  imu_heading,
double  imu_angular_velocity 
)

Definition at line 87 of file odometry.cpp.

Member Data Documentation

std::string kobuki::Odometry::base_frame
private

Definition at line 54 of file odometry.hpp.

ros::Duration kobuki::Odometry::cmd_vel_timeout
private

Definition at line 55 of file odometry.hpp.

ros::Time kobuki::Odometry::last_cmd_time
private

Definition at line 56 of file odometry.hpp.

tf::TransformBroadcaster kobuki::Odometry::odom_broadcaster
private

Definition at line 59 of file odometry.hpp.

std::string kobuki::Odometry::odom_frame
private

Definition at line 53 of file odometry.hpp.

ros::Publisher kobuki::Odometry::odom_publisher
private

Definition at line 60 of file odometry.hpp.

geometry_msgs::TransformStamped kobuki::Odometry::odom_trans
private

Definition at line 51 of file odometry.hpp.

ecl::LegacyPose2D<double> kobuki::Odometry::pose
private

Definition at line 52 of file odometry.hpp.

bool kobuki::Odometry::publish_tf
private

Definition at line 57 of file odometry.hpp.

bool kobuki::Odometry::use_imu_heading
private

Definition at line 58 of file odometry.hpp.


The documentation for this class was generated from the following files:


kobuki_node
Author(s): Daniel Stonier, Younghun Ju, Jorge Santos Simon
autogenerated on Mon Jun 10 2019 13:45:13