1 #ifndef GAZEBO_ROS_CREATE_H 2 #define GAZEBO_ROS_CREATE_H 4 #include <gazebo/msgs/msgs.hh> 5 #include <gazebo/physics/physics.hh> 6 #include <gazebo/physics/PhysicsTypes.hh> 7 #include <gazebo/sensors/SensorTypes.hh> 8 #include <gazebo/transport/TransportTypes.hh> 9 #include <gazebo/transport/transport.hh> 10 #include <gazebo/common/Time.hh> 11 #include <gazebo/common/Plugin.hh> 12 #include <gazebo/common/Events.hh> 14 #include <nav_msgs/Odometry.h> 15 #include <geometry_msgs/TwistWithCovariance.h> 16 #include <geometry_msgs/PoseWithCovariance.h> 28 virtual void Load(physics::ModelPtr _parent, sdf::ElementPtr _sdf );
35 void OnContact(ConstContactsPtr &contact);
36 void OnCmdVel(
const geometry_msgs::TwistConstPtr &msg);
91 sensor_msgs::JointState
js_;
ros::Subscriber cmd_vel_sub_
sensors::RaySensorPtr right_cliff_sensor_
std::string base_geom_name_
void OnCmdVel(const geometry_msgs::TwistConstPtr &msg)
std::string left_wheel_joint_name_
common::Time prev_update_time_
sensors::RaySensorPtr left_cliff_sensor_
float wheel_sep_
Separation between the wheels.
std::string right_wheel_joint_name_
void OnContact(ConstContactsPtr &contact)
physics::CollisionPtr base_geom_
sensors::RaySensorPtr wall_sensor_
float wheel_diam_
Diameter of the wheels.
transport::SubscriberPtr contact_sub_
sensors::RaySensorPtr rightfront_cliff_sensor_
create_node::TurtlebotSensorState sensor_state_
std::string rear_castor_joint_name_
physics::JointPtr joints_[4]
virtual void Load(physics::ModelPtr _parent, sdf::ElementPtr _sdf)
std::string front_castor_joint_name_
tf::TransformBroadcaster transform_broadcaster_
boost::thread * spinner_thread_
float torque_
Torque applied to the wheels.
ros::Publisher joint_state_pub_
physics::ModelPtr my_parent_
ros::Publisher sensor_state_pub_
float * wheel_speed_
Speeds of the wheels.
ros::NodeHandle * rosnode_
sensor_msgs::JointState js_
virtual ~GazeboRosCreate()
common::Time last_cmd_vel_time_
physics::WorldPtr my_world_
std::string node_namespace_
Parameters.
transport::NodePtr gazebo_node_
virtual void UpdateChild()
sensors::RaySensorPtr leftfront_cliff_sensor_
event::ConnectionPtr updateConnection