SMACC2
|
#include <cl_movegroup.hpp>
Public Member Functions | |
ClMoveGroup (std::string groupName) | |
virtual | ~ClMoveGroup () |
void | onInitialize () override |
void | postEventMotionExecutionSucceded () |
void | postEventMotionExecutionFailed () |
template<typename TOrthogonal , typename TSourceObject > | |
void | onOrthogonalAllocation () |
template<typename TCallback , typename T > | |
boost::signals2::connection | onMotionExecutionSuccedded (TCallback callback, T *object) |
template<typename TCallback , typename T > | |
boost::signals2::connection | onMotionExecutionFailed (TCallback callback, T *object) |
Public Member Functions inherited from smacc2::ISmaccClient | |
ISmaccClient () | |
virtual | ~ISmaccClient () |
virtual void | onInitialize () |
virtual std::string | getName () const |
template<typename TComponent > | |
TComponent * | getComponent () |
template<typename TComponent > | |
TComponent * | getComponent (std::string name) |
template<typename TComponent > | |
TComponent * | getComponent (int index) |
virtual smacc2::introspection::TypeInfo::Ptr | getType () |
ISmaccStateMachine * | getStateMachine () |
template<typename TSmaccSignal , typename T > | |
void | connectSignal (TSmaccSignal &signal, void(T::*callback)(), T *object) |
template<typename SmaccClientType > | |
void | requiresClient (SmaccClientType *&storage) |
void | getComponents (std::vector< std::shared_ptr< ISmaccComponent > > &components) |
template<typename EventType > | |
void | postEvent (const EventType &ev) |
template<typename EventType > | |
void | postEvent () |
Public Attributes | |
std::shared_ptr< moveit::planning_interface::MoveGroupInterface > | moveGroupClientInterface |
std::shared_ptr< moveit::planning_interface::PlanningSceneInterface > | planningSceneInterface |
Private Attributes | |
std::function< void()> | postEventMotionExecutionSucceded_ |
std::function< void()> | postEventMotionExecutionFailed_ |
smacc2::SmaccSignal< void()> | onSucceded_ |
smacc2::SmaccSignal< void()> | onFailed_ |
std::string | groupName_ |
Additional Inherited Members | |
Protected Member Functions inherited from smacc2::ISmaccClient | |
template<typename TOrthogonal , typename TSourceObject > | |
void | onOrthogonalAllocation () |
template<typename SmaccComponentType , typename TOrthogonal , typename TClient , typename... TArgs> | |
SmaccComponentType * | createComponent (TArgs... targs) |
template<typename SmaccComponentType , typename TOrthogonal , typename TClient , typename... TArgs> | |
SmaccComponentType * | createNamedComponent (std::string name, TArgs... targs) |
rclcpp::Node::SharedPtr | getNode () |
rclcpp::Logger | getLogger () |
Protected Attributes inherited from smacc2::ISmaccClient | |
std::map< ComponentKey, std::shared_ptr< smacc2::ISmaccComponent > > | components_ |
Definition at line 78 of file cl_movegroup.hpp.
cl_move_group_interface::ClMoveGroup::ClMoveGroup | ( | std::string | groupName | ) |
Definition at line 31 of file cl_movegroup.cpp.
References service_node_3::s.
|
virtual |
Definition at line 33 of file cl_movegroup.cpp.
|
overridevirtual |
Reimplemented from smacc2::ISmaccClient.
Definition at line 35 of file cl_movegroup.cpp.
References smacc2::ISmaccClient::getNode(), groupName_, moveGroupClientInterface, and planningSceneInterface.
|
inline |
Definition at line 119 of file cl_movegroup.hpp.
References smacc2::ISmaccStateMachine::createSignalConnection(), smacc2::ISmaccClient::getStateMachine(), and onFailed_.
|
inline |
Definition at line 113 of file cl_movegroup.hpp.
References smacc2::ISmaccStateMachine::createSignalConnection(), smacc2::ISmaccClient::getStateMachine(), and onSucceded_.
|
inline |
Definition at line 99 of file cl_movegroup.hpp.
References onFailed_, onSucceded_, postEventMotionExecutionFailed_, and postEventMotionExecutionSucceded_.
void cl_move_group_interface::ClMoveGroup::postEventMotionExecutionFailed | ( | ) |
Definition at line 47 of file cl_movegroup.cpp.
References smacc2::ISmaccClient::getLogger(), and postEventMotionExecutionFailed_.
Referenced by cl_move_group_interface::CbMoveJoints::moveJoints(), cl_move_group_interface::CbMoveEndEffectorRelative::moveRelative(), cl_move_group_interface::CbMoveCartesianRelative::moveRelativeCartesian(), cl_move_group_interface::CbMoveEndEffector::moveToAbsolutePose(), cl_move_group_interface::CbMoveEndEffectorTrajectory::onEntry(), and cl_move_group_interface::CbMoveEndEffectorTrajectory::onOrthogonalAllocation().
void cl_move_group_interface::ClMoveGroup::postEventMotionExecutionSucceded | ( | ) |
Definition at line 41 of file cl_movegroup.cpp.
References smacc2::ISmaccClient::getLogger(), and postEventMotionExecutionSucceded_.
Referenced by cl_move_group_interface::CbMoveEndEffectorTrajectory::executeJointSpaceTrajectory(), cl_move_group_interface::CbMoveJoints::moveJoints(), cl_move_group_interface::CbMoveEndEffectorRelative::moveRelative(), cl_move_group_interface::CbMoveCartesianRelative::moveRelativeCartesian(), and cl_move_group_interface::CbMoveEndEffector::moveToAbsolutePose().
|
private |
Definition at line 131 of file cl_movegroup.hpp.
Referenced by onInitialize().
std::shared_ptr<moveit::planning_interface::MoveGroupInterface> cl_move_group_interface::ClMoveGroup::moveGroupClientInterface |
Definition at line 84 of file cl_movegroup.hpp.
Referenced by cl_move_group_interface::CbCircularPivotMotion::computeCurrentEndEffectorPoseRelativeToPivot(), cl_move_group_interface::CbMoveEndEffectorTrajectory::computeJointSpaceTrajectory(), cl_move_group_interface::CbMoveEndEffectorTrajectory::executeJointSpaceTrajectory(), cl_move_group_interface::CbMoveEndEffectorTrajectory::getCurrentEndEffectorPose(), cl_move_group_interface::CbMoveNamedTarget::getNamedTargetValues(), cl_move_group_interface::CbAttachObject::onEntry(), cl_move_group_interface::CbDetachObject::onEntry(), cl_move_group_interface::CbEndEffectorRotate::onEntry(), cl_move_group_interface::CbMoveCartesianRelative::onEntry(), cl_move_group_interface::CbMoveEndEffector::onEntry(), cl_move_group_interface::CbMoveEndEffectorRelative::onEntry(), cl_move_group_interface::CbMoveJoints::onEntry(), cl_move_group_interface::CbMoveNamedTarget::onEntry(), and onInitialize().
|
private |
Definition at line 129 of file cl_movegroup.hpp.
Referenced by onMotionExecutionFailed(), and onOrthogonalAllocation().
|
private |
Definition at line 128 of file cl_movegroup.hpp.
Referenced by onMotionExecutionSuccedded(), and onOrthogonalAllocation().
std::shared_ptr<moveit::planning_interface::PlanningSceneInterface> cl_move_group_interface::ClMoveGroup::planningSceneInterface |
Definition at line 86 of file cl_movegroup.hpp.
Referenced by cl_move_group_interface::CbAttachObject::onEntry(), cl_move_group_interface::CbDetachObject::onEntry(), and onInitialize().
|
private |
Definition at line 126 of file cl_movegroup.hpp.
Referenced by onOrthogonalAllocation(), and postEventMotionExecutionFailed().
|
private |
Definition at line 125 of file cl_movegroup.hpp.
Referenced by onOrthogonalAllocation(), and postEventMotionExecutionSucceded().