SMACC2
|
#include <cl_movegroup.hpp>
Public Member Functions | |
ClMoveGroup (std::string groupName) | |
ClMoveGroup (const moveit::planning_interface::MoveGroupInterface::Options &options) | |
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) |
const moveit::planning_interface::MoveGroupInterface::Options & | getOptions () const |
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) |
const std::vector< std::shared_ptr< ISmaccComponent > > & | iterateComponents () const |
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_ |
moveit::planning_interface::MoveGroupInterface::Options | options_ |
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 36 of file cl_movegroup.cpp.
cl_move_group_interface::ClMoveGroup::ClMoveGroup | ( | const moveit::planning_interface::MoveGroupInterface::Options & | options | ) |
Definition at line 31 of file cl_movegroup.cpp.
|
virtual |
Definition at line 38 of file cl_movegroup.cpp.
const moveit::planning_interface::MoveGroupInterface::Options & cl_move_group_interface::ClMoveGroup::getOptions | ( | ) | const |
|
overridevirtual |
Reimplemented from smacc2::ISmaccClient.
Definition at line 40 of file cl_movegroup.cpp.
References smacc2::ISmaccClient::getNode(), moveGroupClientInterface, options_, and planningSceneInterface.
|
inline |
Definition at line 123 of file cl_movegroup.hpp.
References smacc2::ISmaccStateMachine::createSignalConnection(), smacc2::ISmaccClient::getStateMachine(), and onFailed_.
|
inline |
Definition at line 117 of file cl_movegroup.hpp.
References smacc2::ISmaccStateMachine::createSignalConnection(), smacc2::ISmaccClient::getStateMachine(), and onSucceded_.
|
inline |
Definition at line 101 of file cl_movegroup.hpp.
References onFailed_, onSucceded_, postEventMotionExecutionFailed_, and postEventMotionExecutionSucceded_.
void cl_move_group_interface::ClMoveGroup::postEventMotionExecutionFailed | ( | ) |
Definition at line 52 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 46 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().
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 135 of file cl_movegroup.hpp.
Referenced by onMotionExecutionFailed(), and onOrthogonalAllocation().
|
private |
Definition at line 134 of file cl_movegroup.hpp.
Referenced by onMotionExecutionSuccedded(), and onOrthogonalAllocation().
|
private |
Definition at line 138 of file cl_movegroup.hpp.
Referenced by getOptions(), and onInitialize().
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 132 of file cl_movegroup.hpp.
Referenced by onOrthogonalAllocation(), and postEventMotionExecutionFailed().
|
private |
Definition at line 131 of file cl_movegroup.hpp.
Referenced by onOrthogonalAllocation(), and postEventMotionExecutionSucceded().