SMACC
|
#include <cp_pose.h>
Public Member Functions | |
Pose (std::string poseFrameName="base_link", std::string referenceFrame="odom") | |
virtual void | update () override |
void | waitTransformUpdate (ros::Rate r=ros::Rate(20)) |
geometry_msgs::Pose | toPoseMsg () |
geometry_msgs::PoseStamped | toPoseStampedMsg () |
const std::string & | getReferenceFrame () const |
const std::string & | getFrameId () const |
Public Member Functions inherited from smacc::ISmaccComponent | |
ISmaccComponent () | |
virtual | ~ISmaccComponent () |
virtual std::string | getName () const |
Public Member Functions inherited from smacc::ISmaccUpdatable | |
ISmaccUpdatable () | |
ISmaccUpdatable (ros::Duration duration) | |
void | executeUpdate () |
void | setUpdatePeriod (ros::Duration duration) |
Public Attributes | |
bool | isInitialized |
Private Attributes | |
geometry_msgs::PoseStamped | pose_ |
std::string | poseFrameName_ |
std::string | referenceFrame_ |
std::mutex | m_mutex_ |
Static Private Attributes | |
static std::shared_ptr< tf::TransformListener > | tfListener_ = nullptr |
static std::mutex | listenerMutex_ |
Additional Inherited Members | |
Protected Member Functions inherited from smacc::ISmaccComponent | |
virtual void | initialize (ISmaccClient *owner) |
void | setStateMachine (ISmaccStateMachine *stateMachine) |
template<typename EventType > | |
void | postEvent (const EventType &ev) |
template<typename EventType > | |
void | postEvent () |
template<typename TOrthogonal , typename TSourceObject > | |
void | onOrthogonalAllocation () |
template<typename TComponent > | |
void | requiresComponent (TComponent *&requiredComponentStorage) |
template<typename TClient > | |
void | requiresClient (TClient *&requiredClientStorage) |
virtual void | onInitialize () |
template<typename SmaccComponentType , typename TOrthogonal , typename TClient , typename... TArgs> | |
SmaccComponentType * | createSiblingComponent (TArgs... targs) |
template<typename SmaccComponentType , typename TOrthogonal , typename TClient , typename... TArgs> | |
SmaccComponentType * | createSiblingNamedComponent (std::string name, TArgs... targs) |
virtual void | update ()=0 |
Protected Attributes inherited from smacc::ISmaccComponent | |
ISmaccStateMachine * | stateMachine_ |
ISmaccClient * | owner_ |
cl_move_base_z::Pose::Pose | ( | std::string | poseFrameName = "base_link" , |
std::string | referenceFrame = "odom" |
||
) |
Definition at line 15 of file cp_pose.cpp.
References listenerMutex_, pose_, referenceFrame_, and tfListener_.
|
inline |
Definition at line 44 of file cp_pose.h.
References poseFrameName_.
|
inline |
Definition at line 39 of file cp_pose.h.
References referenceFrame_.
Referenced by cl_move_base_z::CbNavigateGlobalPosition::execute(), cl_move_base_z::CbAbsoluteRotate::onEntry(), cl_move_base_z::CbNavigateBackwards::onEntry(), cl_move_base_z::CbNavigateForward::onEntry(), cl_move_base_z::CbRotate::onEntry(), and cl_move_base_z::CbUndoPathBackwards2::publishMarkers().
|
inline |
Definition at line 27 of file cp_pose.h.
References m_mutex_, and pose_.
Referenced by cl_move_base_z::CbUndoPathBackwards2::onEntry(), and cl_move_base_z::CbUndoPathBackwards2::update().
|
inline |
|
overridevirtual |
Implements smacc::ISmaccUpdatable.
Definition at line 64 of file cp_pose.cpp.
References isInitialized, listenerMutex_, m_mutex_, pose_, poseFrameName_, referenceFrame_, and tfListener_.
void cl_move_base_z::Pose::waitTransformUpdate | ( | ros::Rate | r = ros::Rate(20) | ) |
Definition at line 32 of file cp_pose.cpp.
References isInitialized, listenerMutex_, m_mutex_, pose_, poseFrameName_, referenceFrame_, and tfListener_.
bool cl_move_base_z::Pose::isInitialized |
Definition at line 49 of file cp_pose.h.
Referenced by update(), and waitTransformUpdate().
|
staticprivate |
Definition at line 55 of file cp_pose.h.
Referenced by Pose(), update(), and waitTransformUpdate().
|
private |
Definition at line 60 of file cp_pose.h.
Referenced by toPoseMsg(), toPoseStampedMsg(), update(), and waitTransformUpdate().
|
private |
Definition at line 52 of file cp_pose.h.
Referenced by Pose(), toPoseMsg(), toPoseStampedMsg(), update(), and waitTransformUpdate().
|
private |
Definition at line 57 of file cp_pose.h.
Referenced by getFrameId(), update(), and waitTransformUpdate().
|
private |
Definition at line 58 of file cp_pose.h.
Referenced by getReferenceFrame(), Pose(), update(), and waitTransformUpdate().
|
staticprivate |
Definition at line 54 of file cp_pose.h.
Referenced by Pose(), update(), and waitTransformUpdate().