GazeboRosFT controller This is a controller that simulates a 6 dof force sensor. More...
#include <gazebo_ros_ft_sensor.h>
Public Member Functions | |
GazeboRosFT () | |
Constructor. More... | |
void | Load (physics::ModelPtr _parent, sdf::ElementPtr _sdf) |
Load the controller. More... | |
virtual | ~GazeboRosFT () |
Destructor. More... | |
Protected Member Functions | |
virtual void | UpdateChild () |
Update the controller. More... | |
Private Member Functions | |
void | FTConnect () |
void | FTDisconnect () |
double | GaussianKernel (double mu, double sigma) |
Gaussian noise generator. More... | |
void | QueueThread () |
Private Attributes | |
boost::thread | callback_queue_thread_ |
physics::LinkPtr | child_link_ |
A pointer to the Gazebo child link. More... | |
std::string | frame_name_ |
ROS frame transform name to use in the image message header. FIXME: extract link name directly? More... | |
int | ft_connect_count_ |
: keep track of number of connections More... | |
double | gaussian_noise_ |
Gaussian noise. More... | |
physics::JointPtr | joint_ |
A pointer to the Gazebo joint. More... | |
std::string | joint_name_ |
store bodyname More... | |
common::Time | last_time_ |
save last_time More... | |
boost::mutex | lock_ |
A mutex to lock access to fields that are used in message callbacks. More... | |
physics::ModelPtr | model_ |
A pointer to the Gazebo model. More... | |
physics::LinkPtr | parent_link_ |
A pointer to the Gazebo parent link. More... | |
ros::Publisher | pub_ |
ros::CallbackQueue | queue_ |
std::string | robot_namespace_ |
for setting ROS name space More... | |
ros::NodeHandle * | rosnode_ |
A pointer to the ROS node. A node will be instantiated if it does not exist. More... | |
unsigned int | seed |
std::string | topic_name_ |
ROS WrenchStamped topic name. More... | |
event::ConnectionPtr | update_connection_ |
double | update_rate_ |
physics::WorldPtr | world_ |
A pointer to the Gazebo world. More... | |
geometry_msgs::WrenchStamped | wrench_msg_ |
ROS WrenchStamped message. More... | |
GazeboRosFT controller This is a controller that simulates a 6 dof force sensor.
Definition at line 74 of file gazebo_ros_ft_sensor.h.
gazebo::GazeboRosFT::GazeboRosFT | ( | ) |
Constructor.
parent | The parent entity must be a Model |
Definition at line 32 of file gazebo_ros_ft_sensor.cpp.
|
virtual |
Destructor.
Definition at line 40 of file gazebo_ros_ft_sensor.cpp.
|
private |
Definition at line 144 of file gazebo_ros_ft_sensor.cpp.
|
private |
Definition at line 151 of file gazebo_ros_ft_sensor.cpp.
|
private |
Gaussian noise generator.
Definition at line 220 of file gazebo_ros_ft_sensor.cpp.
void gazebo::GazeboRosFT::Load | ( | physics::ModelPtr | _parent, |
sdf::ElementPtr | _sdf | ||
) |
Load the controller.
Definition at line 53 of file gazebo_ros_ft_sensor.cpp.
|
private |
Definition at line 245 of file gazebo_ros_ft_sensor.cpp.
|
protectedvirtual |
Update the controller.
Definition at line 158 of file gazebo_ros_ft_sensor.cpp.
|
private |
Definition at line 147 of file gazebo_ros_ft_sensor.h.
|
private |
A pointer to the Gazebo child link.
Definition at line 102 of file gazebo_ros_ft_sensor.h.
|
private |
ROS frame transform name to use in the image message header. FIXME: extract link name directly?
Definition at line 125 of file gazebo_ros_ft_sensor.h.
|
private |
: keep track of number of connections
Definition at line 140 of file gazebo_ros_ft_sensor.h.
|
private |
Gaussian noise.
Definition at line 90 of file gazebo_ros_ft_sensor.h.
|
private |
A pointer to the Gazebo joint.
Definition at line 96 of file gazebo_ros_ft_sensor.h.
|
private |
store bodyname
Definition at line 118 of file gazebo_ros_ft_sensor.h.
|
private |
save last_time
Definition at line 134 of file gazebo_ros_ft_sensor.h.
|
private |
A mutex to lock access to fields that are used in message callbacks.
Definition at line 131 of file gazebo_ros_ft_sensor.h.
|
private |
A pointer to the Gazebo model.
Definition at line 105 of file gazebo_ros_ft_sensor.h.
|
private |
A pointer to the Gazebo parent link.
Definition at line 99 of file gazebo_ros_ft_sensor.h.
|
private |
Definition at line 112 of file gazebo_ros_ft_sensor.h.
|
private |
Definition at line 145 of file gazebo_ros_ft_sensor.h.
|
private |
for setting ROS name space
Definition at line 128 of file gazebo_ros_ft_sensor.h.
|
private |
A pointer to the ROS node. A node will be instantiated if it does not exist.
Definition at line 111 of file gazebo_ros_ft_sensor.h.
|
private |
Definition at line 91 of file gazebo_ros_ft_sensor.h.
|
private |
ROS WrenchStamped topic name.
Definition at line 121 of file gazebo_ros_ft_sensor.h.
|
private |
Definition at line 150 of file gazebo_ros_ft_sensor.h.
|
private |
Definition at line 137 of file gazebo_ros_ft_sensor.h.
|
private |
A pointer to the Gazebo world.
Definition at line 108 of file gazebo_ros_ft_sensor.h.
|
private |
ROS WrenchStamped message.
Definition at line 115 of file gazebo_ros_ft_sensor.h.