Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
gazebo::GazeboRosPlanarMove Class Reference

#include <gazebo_ros_planar_move.h>

Inheritance diagram for gazebo::GazeboRosPlanarMove:
Inheritance graph
[legend]

Public Member Functions

 GazeboRosPlanarMove ()
 
void Load (physics::ModelPtr parent, sdf::ElementPtr sdf)
 
 ~GazeboRosPlanarMove ()
 

Protected Member Functions

virtual void FiniChild ()
 
virtual void UpdateChild ()
 

Private Member Functions

void cmdVelCallback (const geometry_msgs::Twist::ConstPtr &cmd_msg)
 
void publishOdometry (double step_time)
 
void QueueThread ()
 

Private Attributes

bool alive_
 
boost::thread callback_queue_thread_
 
std::string command_topic_
 
ignition::math::Pose3d last_odom_pose_
 
common::Time last_odom_publish_time_
 
boost::mutex lock
 
nav_msgs::Odometry odom_
 
std::string odometry_frame_
 
ros::Publisher odometry_pub_
 
double odometry_rate_
 
std::string odometry_topic_
 
physics::ModelPtr parent_
 
ros::CallbackQueue queue_
 
std::string robot_base_frame_
 
std::string robot_namespace_
 
boost::shared_ptr< ros::NodeHandlerosnode_
 
double rot_
 
std::string tf_prefix_
 
boost::shared_ptr< tf::TransformBroadcastertransform_broadcaster_
 
event::ConnectionPtr update_connection_
 
ros::Subscriber vel_sub_
 
double x_
 
double y_
 

Detailed Description

Definition at line 47 of file gazebo_ros_planar_move.h.

Constructor & Destructor Documentation

◆ GazeboRosPlanarMove()

gazebo::GazeboRosPlanarMove::GazeboRosPlanarMove ( )

Definition at line 30 of file gazebo_ros_planar_move.cpp.

◆ ~GazeboRosPlanarMove()

gazebo::GazeboRosPlanarMove::~GazeboRosPlanarMove ( )

Definition at line 32 of file gazebo_ros_planar_move.cpp.

Member Function Documentation

◆ cmdVelCallback()

void gazebo::GazeboRosPlanarMove::cmdVelCallback ( const geometry_msgs::Twist::ConstPtr &  cmd_msg)
private

Definition at line 206 of file gazebo_ros_planar_move.cpp.

◆ FiniChild()

void gazebo::GazeboRosPlanarMove::FiniChild ( )
protectedvirtual

Definition at line 198 of file gazebo_ros_planar_move.cpp.

◆ Load()

void gazebo::GazeboRosPlanarMove::Load ( physics::ModelPtr  parent,
sdf::ElementPtr  sdf 
)

Definition at line 35 of file gazebo_ros_planar_move.cpp.

◆ publishOdometry()

void gazebo::GazeboRosPlanarMove::publishOdometry ( double  step_time)
private

Definition at line 224 of file gazebo_ros_planar_move.cpp.

◆ QueueThread()

void gazebo::GazeboRosPlanarMove::QueueThread ( )
private

Definition at line 215 of file gazebo_ros_planar_move.cpp.

◆ UpdateChild()

void gazebo::GazeboRosPlanarMove::UpdateChild ( )
protectedvirtual

Definition at line 168 of file gazebo_ros_planar_move.cpp.

Member Data Documentation

◆ alive_

bool gazebo::GazeboRosPlanarMove::alive_
private

Definition at line 91 of file gazebo_ros_planar_move.h.

◆ callback_queue_thread_

boost::thread gazebo::GazeboRosPlanarMove::callback_queue_thread_
private

Definition at line 82 of file gazebo_ros_planar_move.h.

◆ command_topic_

std::string gazebo::GazeboRosPlanarMove::command_topic_
private

Definition at line 74 of file gazebo_ros_planar_move.h.

◆ last_odom_pose_

ignition::math::Pose3d gazebo::GazeboRosPlanarMove::last_odom_pose_
private

Definition at line 93 of file gazebo_ros_planar_move.h.

◆ last_odom_publish_time_

common::Time gazebo::GazeboRosPlanarMove::last_odom_publish_time_
private

Definition at line 92 of file gazebo_ros_planar_move.h.

◆ lock

boost::mutex gazebo::GazeboRosPlanarMove::lock
private

Definition at line 71 of file gazebo_ros_planar_move.h.

◆ odom_

nav_msgs::Odometry gazebo::GazeboRosPlanarMove::odom_
private

Definition at line 68 of file gazebo_ros_planar_move.h.

◆ odometry_frame_

std::string gazebo::GazeboRosPlanarMove::odometry_frame_
private

Definition at line 76 of file gazebo_ros_planar_move.h.

◆ odometry_pub_

ros::Publisher gazebo::GazeboRosPlanarMove::odometry_pub_
private

Definition at line 65 of file gazebo_ros_planar_move.h.

◆ odometry_rate_

double gazebo::GazeboRosPlanarMove::odometry_rate_
private

Definition at line 78 of file gazebo_ros_planar_move.h.

◆ odometry_topic_

std::string gazebo::GazeboRosPlanarMove::odometry_topic_
private

Definition at line 75 of file gazebo_ros_planar_move.h.

◆ parent_

physics::ModelPtr gazebo::GazeboRosPlanarMove::parent_
private

Definition at line 61 of file gazebo_ros_planar_move.h.

◆ queue_

ros::CallbackQueue gazebo::GazeboRosPlanarMove::queue_
private

Definition at line 81 of file gazebo_ros_planar_move.h.

◆ robot_base_frame_

std::string gazebo::GazeboRosPlanarMove::robot_base_frame_
private

Definition at line 77 of file gazebo_ros_planar_move.h.

◆ robot_namespace_

std::string gazebo::GazeboRosPlanarMove::robot_namespace_
private

Definition at line 73 of file gazebo_ros_planar_move.h.

◆ rosnode_

boost::shared_ptr<ros::NodeHandle> gazebo::GazeboRosPlanarMove::rosnode_
private

Definition at line 64 of file gazebo_ros_planar_move.h.

◆ rot_

double gazebo::GazeboRosPlanarMove::rot_
private

Definition at line 90 of file gazebo_ros_planar_move.h.

◆ tf_prefix_

std::string gazebo::GazeboRosPlanarMove::tf_prefix_
private

Definition at line 69 of file gazebo_ros_planar_move.h.

◆ transform_broadcaster_

boost::shared_ptr<tf::TransformBroadcaster> gazebo::GazeboRosPlanarMove::transform_broadcaster_
private

Definition at line 67 of file gazebo_ros_planar_move.h.

◆ update_connection_

event::ConnectionPtr gazebo::GazeboRosPlanarMove::update_connection_
private

Definition at line 62 of file gazebo_ros_planar_move.h.

◆ vel_sub_

ros::Subscriber gazebo::GazeboRosPlanarMove::vel_sub_
private

Definition at line 66 of file gazebo_ros_planar_move.h.

◆ x_

double gazebo::GazeboRosPlanarMove::x_
private

Definition at line 88 of file gazebo_ros_planar_move.h.

◆ y_

double gazebo::GazeboRosPlanarMove::y_
private

Definition at line 89 of file gazebo_ros_planar_move.h.


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


gazebo_plugins
Author(s): John Hsu
autogenerated on Wed Aug 24 2022 02:47:52