ForceTorqueSensorPrivate.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015-2016 Open Source Robotics Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16 */
17 #ifndef _GAZEBO_SENSORS_FORCETORQUESENSOR_PRIVATE_HH_
18 #define _GAZEBO_SENSORS_FORCETORQUESENSOR_PRIVATE_HH_
19 
20 #include <mutex>
21 #include <ignition/math/Matrix3.hh>
22 
25 
26 namespace gazebo
27 {
28  namespace sensors
29  {
33  {
36 
39 
42 
44  public: msgs::WrenchStamped wrenchMsg;
45 
47  public: std::mutex mutex;
48 
50  public: enum MeasureFrame
51  {
55  };
56 
59 
63  public: bool parentToChild;
64 
68  public: ignition::math::Matrix3d rotationSensorChild;
69  };
70  }
71 }
72 #endif
std::mutex mutex
Mutex to protect the wrench message.
Definition: ForceTorqueSensorPrivate.hh:47
transport::PublisherPtr wrenchPub
Publishes the wrenchMsg.
Definition: ForceTorqueSensorPrivate.hh:41
Definition: ForceTorqueSensorPrivate.hh:53
event::EventT< void(msgs::WrenchStamped)> update
Update event.
Definition: ForceTorqueSensorPrivate.hh:35
physics::JointPtr parentJoint
Parent joint, from which we get force torque info.
Definition: ForceTorqueSensorPrivate.hh:38
Forward declarations for transport.
default namespace for gazebo
msgs::WrenchStamped wrenchMsg
Message the store the current force torque info.
Definition: ForceTorqueSensorPrivate.hh:44
bool parentToChild
Direction of the measure True if the measured force torque is the one applied by the parent on the ch...
Definition: ForceTorqueSensorPrivate.hh:63
Definition: ForceTorqueSensorPrivate.hh:32
boost::shared_ptr< Joint > JointPtr
Definition: PhysicsTypes.hh:108
Definition: ForceTorqueSensorPrivate.hh:54
MeasureFrame
Which orientation we support for returning sensor measure.
Definition: ForceTorqueSensorPrivate.hh:50
MeasureFrame measureFrame
Frame in which we return the measured force torque info.
Definition: ForceTorqueSensorPrivate.hh:58
ignition::math::Matrix3d rotationSensorChild
Rotation matrix than transforms a vector expressed in child orientation in a vector expressed in join...
Definition: ForceTorqueSensorPrivate.hh:68
boost::shared_ptr< Publisher > PublisherPtr
Definition: TransportTypes.hh:49
Definition: ForceTorqueSensorPrivate.hh:52