47 #ifndef _MIRA_RIGIDMODELOBSERVER_H_ 48 #define _MIRA_RIGIDMODELOBSERVER_H_ 54 namespace mira {
namespace model {
67 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
74 typedef std::pair<std::string, JointPtr> JointPair;
75 foreach(
const JointPair& joint,
mRigidModel->joints)
80 bool mustSubscribe =
false;
83 if (link->name == joint.second->child)
86 if (!link->collisions.empty())
122 std::map<std::string, Pose3, std::less<std::string>,
EIGEN_MAKE_ALIGNED_OPERATOR_NEW RigidModelObserver(Authority &parent, RigidModelPtr rigidModel)
Definition: RigidModelObserver.h:69
A rigid model representation.
boost::function< void()> mCallback
Definition: RigidModelObserver.h:125
boost::shared_ptr< Link > LinkPtr
Definition: Link.h:84
Class that acts as an observer for rigid models.
Definition: RigidModelObserver.h:63
boost::shared_ptr< RigidModel > RigidModelPtr
Definition: RigidModel.h:205
std::string getName() const
boost::shared_ptr< RigidModelObserver > RigidModelObserverPtr
Definition: RigidModelObserver.h:128
const std::string & getChannelID()
For a fixed joint all degrees of freedom are locked and its state is fixed.
Definition: Joint.h:69
RigidModelPtr mRigidModel
Definition: RigidModelObserver.h:124
void collisionChanged(ChannelRead< Pose3 > data)
Definition: RigidModelObserver.h:109
void registerCollisionChangedCallback(boost::function< void()> cb)
Register a callback function that gets called whenever the collision shape of the model changes...
Definition: RigidModelObserver.h:102
std::map< std::string, Pose3, std::less< std::string >, Eigen::aligned_allocator< std::pair< std::string, Pose3 > > > mLastStates
Definition: RigidModelObserver.h:123