$search
#include <pub_odometry.h>
Definition at line 65 of file pub_odometry.h.
void controller::BaseOdometry::computeBaseVelocity | ( | ) | [private] |
Computes the linear x and y velocities and the angular (phi) velocity. Called by updateOdometry().
void controller::BaseOdometry::getOdometryMessage | ( | nav_msgs::Odometry & | msg | ) | [private] |
Sets the proper values in the message given as parameter. Calls populateCovariance(). Called by publish().
bool controller::BaseOdometry::init | ( | pr2_mechanism_model::RobotState * | robot, | |
ros::NodeHandle & | n | |||
) | [virtual] |
Initializes all parameters needed for start publishing.
Implements pr2_controller_interface::Controller.
void controller::BaseOdometry::populateCovariance | ( | nav_msgs::Odometry & | msg | ) | [private] |
Sets the needed values in the covariance matrix of the message given as parameter. Called by getOdometryMessage().
void controller::BaseOdometry::publish | ( | ) | [private] |
Calls getOdometryMessage to 'create' an odometry message and publishes it. Calls getOdometryMessage(). Called by update().
void controller::BaseOdometry::publishTransform | ( | ) | [private] |
Publishes a new transformation message. Called by update().
void controller::BaseOdometry::starting | ( | ) | [virtual] |
Start the thread and sets last publish times to now.
Reimplemented from pr2_controller_interface::Controller.
void controller::BaseOdometry::stopping | ( | ) | [virtual] |
Stops the thread.
Reimplemented from pr2_controller_interface::Controller.
void controller::BaseOdometry::update | ( | ) | [virtual] |
Updates the odometry and then checks if enough time has passed to publish something by calling the private publishing methods. Called periodically.
Implements pr2_controller_interface::Controller.
void controller::BaseOdometry::updateOdometry | ( | ) | [private] |
Updates position (x,y,z,distance,angle) and updates the velocities by calling computeBaseVelocity(). Called by update().
std::string controller::BaseOdometry::base_footprint_frame_ [private] |
Definition at line 123 of file pub_odometry.h.
std::string controller::BaseOdometry::base_link_frame_ [private] |
Definition at line 122 of file pub_odometry.h.
double controller::BaseOdometry::cov_x_theta_ [private] |
Definition at line 128 of file pub_odometry.h.
double controller::BaseOdometry::cov_x_y_ [private] |
Definition at line 128 of file pub_odometry.h.
double controller::BaseOdometry::cov_y_theta_ [private] |
Definition at line 128 of file pub_odometry.h.
Definition at line 133 of file pub_odometry.h.
double controller::BaseOdometry::current_vel_phi [private] |
Definition at line 150 of file pub_odometry.h.
double controller::BaseOdometry::current_vel_wheel_inner_left_front [private] |
Definition at line 146 of file pub_odometry.h.
double controller::BaseOdometry::current_vel_wheel_inner_left_rear [private] |
Definition at line 146 of file pub_odometry.h.
double controller::BaseOdometry::current_vel_wheel_inner_right_front [private] |
Definition at line 146 of file pub_odometry.h.
double controller::BaseOdometry::current_vel_wheel_inner_right_rear [private] |
Definition at line 146 of file pub_odometry.h.
double controller::BaseOdometry::current_vel_x [private] |
Definition at line 150 of file pub_odometry.h.
double controller::BaseOdometry::current_vel_y [private] |
Definition at line 150 of file pub_odometry.h.
double controller::BaseOdometry::expected_publish_time_ [private] |
Definition at line 137 of file pub_odometry.h.
Definition at line 135 of file pub_odometry.h.
Definition at line 132 of file pub_odometry.h.
Definition at line 135 of file pub_odometry.h.
ros::NodeHandle controller::BaseOdometry::n [private] |
Definition at line 103 of file pub_odometry.h.
Definition at line 118 of file pub_odometry.h.
std::string controller::BaseOdometry::odometry_frame_ [private] |
Definition at line 121 of file pub_odometry.h.
double controller::BaseOdometry::odometry_publish_rate_ [private] |
Definition at line 113 of file pub_odometry.h.
boost::scoped_ptr<realtime_tools::RealtimePublisher <nav_msgs::Odometry> > controller::BaseOdometry::odometry_publisher_ [private] |
Definition at line 108 of file pub_odometry.h.
Definition at line 119 of file pub_odometry.h.
bool controller::BaseOdometry::publish_odometry_ [private] |
Definition at line 115 of file pub_odometry.h.
bool controller::BaseOdometry::publish_tf_ [private] |
Definition at line 115 of file pub_odometry.h.
pointer to robot
Definition at line 105 of file pub_odometry.h.
double controller::BaseOdometry::sigma_theta_ [private] |
Definition at line 128 of file pub_odometry.h.
double controller::BaseOdometry::sigma_x_ [private] |
Covariance variables
Definition at line 128 of file pub_odometry.h.
double controller::BaseOdometry::sigma_y_ [private] |
Definition at line 128 of file pub_odometry.h.
std::string controller::BaseOdometry::tf_prefix_ [private] |
Definition at line 124 of file pub_odometry.h.
boost::scoped_ptr<realtime_tools::RealtimePublisher <tf::tfMessage> > controller::BaseOdometry::transform_publisher_ [private] |
Definition at line 110 of file pub_odometry.h.
double controller::BaseOdometry::update_time [private] |
Definition at line 138 of file pub_odometry.h.
Definition at line 142 of file pub_odometry.h.
Definition at line 143 of file pub_odometry.h.
Definition at line 144 of file pub_odometry.h.
Definition at line 145 of file pub_odometry.h.