Go to the documentation of this file.
17 #ifndef GAZEBO_ROS_IMU_HH
18 #define GAZEBO_ROS_IMU_HH
21 #include <boost/thread.hpp>
22 #include <boost/thread/mutex.hpp>
23 #include <boost/bind.hpp>
28 #include <sensor_msgs/Imu.h>
29 #include <std_srvs/Empty.h>
31 #include <gazebo/physics/physics.hh>
32 #include <gazebo/transport/transport.hh>
33 #include <gazebo/common/common.hh>
49 public:
void Load(physics::ModelPtr _parent, sdf::ElementPtr _sdf);
58 private: physics::LinkPtr
link;
88 private: ignition::math::Vector3d
apos_;
89 private: ignition::math::Vector3d
aeul_;
108 std_srvs::Empty::Response &res);
121 private: sdf::ElementPtr
sdf;
ignition::math::Vector3d aeul_
std::string service_name_
ros::NodeHandle * rosnode_
pointer to ros node
ignition::math::Pose3d offset_
allow specifying constant xyz and rpy offsets
event::ConnectionPtr update_connection_
physics::WorldPtr world_
The parent World.
physics::LinkPtr link
The link referred to by this plugin.
boost::thread callback_queue_thread_
std::string robot_namespace_
for setting ROS name space
double GaussianKernel(double mu, double sigma)
Gaussian noise generator.
GazeboRosIMU()
Constructor.
ros::CallbackQueue imu_queue_
sensor_msgs::Imu imu_msg_
ros message
ignition::math::Vector3d last_veul_
PubQueue< sensor_msgs::Imu >::Ptr pub_Queue
bool ServiceCallback(std_srvs::Empty::Request &req, std_srvs::Empty::Response &res)
call back when using service
boost::mutex lock_
A mutex to lock access to fields that are used in message callbacks.
ignition::math::Pose3d initial_pose_
: keep initial pose to offset orientation in imu message
double gaussian_noise_
Gaussian noise.
std::string link_name_
store link name
void Load(physics::ModelPtr _parent, sdf::ElementPtr _sdf)
Load the controller.
A collection of PubQueue objects, potentially of different types. This class is the programmer's inte...
ignition::math::Vector3d last_vpos_
common::Time last_time_
save last_time
A queue of outgoing messages. Instead of calling publish() directly, you can push() messages here to ...
virtual ~GazeboRosIMU()
Destructor.
std::string frame_name_
store frame name
boost::thread deferred_load_thread_
ignition::math::Vector3d apos_
virtual void UpdateChild()
Update the controller.
std::string topic_name_
topic name
gazebo_plugins
Author(s): John Hsu
autogenerated on Thu Sep 5 2024 02:49:55