SMACC2
|
#include <cb_circular_pivot_motion.hpp>
Public Member Functions | |
CbCircularPivotMotion (std::optional< std::string > tipLink=std::nullopt) | |
CbCircularPivotMotion (const geometry_msgs::msg::PoseStamped &planePivotPose, double deltaRadians, std::optional< std::string > tipLink=std::nullopt) | |
CbCircularPivotMotion (const geometry_msgs::msg::PoseStamped &planePivotPose, const geometry_msgs::msg::Pose &relativeInitialPose, double deltaRadians, std::optional< std::string > tipLink=std::nullopt) | |
virtual void | generateTrajectory () override |
virtual void | createMarkers () override |
Public Member Functions inherited from cl_move_group_interface::CbMoveEndEffectorTrajectory | |
CbMoveEndEffectorTrajectory (std::optional< std::string > tipLink=std::nullopt) | |
CbMoveEndEffectorTrajectory (const std::vector< geometry_msgs::msg::PoseStamped > &endEffectorTrajectory, std::optional< std::string > tipLink=std::nullopt) | |
template<typename TOrthogonal , typename TSourceObject > | |
void | onOrthogonalAllocation () |
virtual void | onEntry () override |
virtual void | onExit () override |
virtual void | update () override |
Public Member Functions inherited from smacc2::SmaccAsyncClientBehavior | |
template<typename TOrthogonal , typename TSourceObject > | |
void | onOrthogonalAllocation () |
virtual | ~SmaccAsyncClientBehavior () |
template<typename TCallback , typename T > | |
boost::signals2::connection | onSuccess (TCallback callback, T *object) |
template<typename TCallback , typename T > | |
boost::signals2::connection | onFinished (TCallback callback, T *object) |
template<typename TCallback , typename T > | |
boost::signals2::connection | onFailure (TCallback callback, T *object) |
void | requestForceFinish () |
void | executeOnEntry () override |
void | executeOnExit () override |
void | waitOnEntryThread (bool requestFinish) |
template<typename TCallbackMethod , typename T > | |
boost::signals2::connection | onSuccess (TCallbackMethod callback, T *object) |
template<typename TCallbackMethod , typename T > | |
boost::signals2::connection | onFinished (TCallbackMethod callback, T *object) |
template<typename TCallbackMethod , typename T > | |
boost::signals2::connection | onFailure (TCallbackMethod callback, T *object) |
Public Member Functions inherited from smacc2::ISmaccClientBehavior | |
ISmaccClientBehavior () | |
virtual | ~ISmaccClientBehavior () |
ISmaccStateMachine * | getStateMachine () |
std::string | getName () const |
template<typename SmaccClientType > | |
void | requiresClient (SmaccClientType *&storage) |
template<typename SmaccComponentType > | |
void | requiresComponent (SmaccComponentType *&storage, bool throwExceptionIfNotExist=false) |
virtual void | onEntry () |
virtual void | onExit () |
virtual void | executeOnEntry () |
virtual void | executeOnExit () |
Public Member Functions inherited from smacc2::ISmaccUpdatable | |
ISmaccUpdatable () | |
ISmaccUpdatable (rclcpp::Duration duration) | |
void | executeUpdate (rclcpp::Node::SharedPtr node) |
void | setUpdatePeriod (rclcpp::Duration duration) |
Public Attributes | |
std::optional< double > | angularSpeed_rad_s_ |
std::optional< double > | linearSpeed_m_s_ |
std::optional< geometry_msgs::msg::Pose > | relativeInitialPose_ |
Public Attributes inherited from cl_move_group_interface::CbMoveEndEffectorTrajectory | |
std::optional< std::string > | group_ |
std::optional< std::string > | tipLink_ |
std::optional< bool > | allowInitialTrajectoryStateJointDiscontinuity_ |
Protected Attributes | |
geometry_msgs::msg::PoseStamped | planePivotPose_ |
double | deltaRadians_ |
Protected Attributes inherited from cl_move_group_interface::CbMoveEndEffectorTrajectory | |
std::vector< geometry_msgs::msg::PoseStamped > | endEffectorTrajectory_ |
ClMoveGroup * | movegroupClient_ = nullptr |
visualization_msgs::msg::MarkerArray | beahiorMarkers_ |
Private Member Functions | |
void | computeCurrentEndEffectorPoseRelativeToPivot () |
Additional Inherited Members | |
Protected Member Functions inherited from cl_move_group_interface::CbMoveEndEffectorTrajectory | |
ComputeJointTrajectoryErrorCode | computeJointSpaceTrajectory (moveit_msgs::msg::RobotTrajectory &computedJointTrajectory) |
void | executeJointSpaceTrajectory (const moveit_msgs::msg::RobotTrajectory &computedJointTrajectory) |
virtual void | generateTrajectory ()=0 |
virtual void | createMarkers () |
void | getCurrentEndEffectorPose (std::string globalFrame, tf2::Stamped< tf2::Transform > ¤tEndEffectorTransform) |
Protected Member Functions inherited from smacc2::SmaccAsyncClientBehavior | |
void | postSuccessEvent () |
void | postFailureEvent () |
virtual void | dispose () override |
bool | isShutdownRequested () |
Protected Member Functions inherited from smacc2::ISmaccClientBehavior | |
virtual void | runtimeConfigure () |
template<typename EventType > | |
void | postEvent (const EventType &ev) |
template<typename EventType > | |
void | postEvent () |
ISmaccState * | getCurrentState () |
virtual void | dispose () |
virtual rclcpp::Node::SharedPtr | getNode () const |
virtual rclcpp::Logger | getLogger () const |
virtual void | update ()=0 |
Definition at line 29 of file cb_circular_pivot_motion.hpp.
cl_move_group_interface::CbCircularPivotMotion::CbCircularPivotMotion | ( | std::optional< std::string > | tipLink = std::nullopt | ) |
Definition at line 29 of file cb_circular_pivot_motion.cpp.
cl_move_group_interface::CbCircularPivotMotion::CbCircularPivotMotion | ( | const geometry_msgs::msg::PoseStamped & | planePivotPose, |
double | deltaRadians, | ||
std::optional< std::string > | tipLink = std::nullopt |
||
) |
Definition at line 34 of file cb_circular_pivot_motion.cpp.
References planePivotPose_, and cl_move_group_interface::CbMoveEndEffectorTrajectory::tipLink_.
cl_move_group_interface::CbCircularPivotMotion::CbCircularPivotMotion | ( | const geometry_msgs::msg::PoseStamped & | planePivotPose, |
const geometry_msgs::msg::Pose & | relativeInitialPose, | ||
double | deltaRadians, | ||
std::optional< std::string > | tipLink = std::nullopt |
||
) |
Definition at line 42 of file cb_circular_pivot_motion.cpp.
|
private |
Definition at line 159 of file cb_circular_pivot_motion.cpp.
References smacc2::ISmaccClientBehavior::getLogger(), smacc2::ISmaccClientBehavior::getName(), smacc2::ISmaccClientBehavior::getNode(), cl_move_group_interface::CbMoveEndEffectorTrajectory::movegroupClient_, cl_move_group_interface::ClMoveGroup::moveGroupClientInterface, planePivotPose_, relativeInitialPose_, and cl_move_group_interface::CbMoveEndEffectorTrajectory::tipLink_.
Referenced by generateTrajectory().
|
overridevirtual |
Reimplemented from cl_move_group_interface::CbMoveEndEffectorTrajectory.
Definition at line 213 of file cb_circular_pivot_motion.cpp.
References cl_move_group_interface::CbMoveEndEffectorTrajectory::beahiorMarkers_, cl_move_group_interface::CbMoveEndEffectorTrajectory::createMarkers(), smacc2::ISmaccClientBehavior::getNode(), and planePivotPose_.
|
overridevirtual |
Implements cl_move_group_interface::CbMoveEndEffectorTrajectory.
Definition at line 53 of file cb_circular_pivot_motion.cpp.
References angularSpeed_rad_s_, computeCurrentEndEffectorPoseRelativeToPivot(), deltaRadians_, cl_move_group_interface::CbMoveEndEffectorTrajectory::endEffectorTrajectory_, smacc2::ISmaccClientBehavior::getLogger(), smacc2::ISmaccClientBehavior::getName(), linearSpeed_m_s_, planePivotPose_, and relativeInitialPose_.
std::optional<double> cl_move_group_interface::CbCircularPivotMotion::angularSpeed_rad_s_ |
Definition at line 32 of file cb_circular_pivot_motion.hpp.
Referenced by generateTrajectory().
|
protected |
Definition at line 57 of file cb_circular_pivot_motion.hpp.
Referenced by cl_move_group_interface::CbEndEffectorRotate::CbEndEffectorRotate(), and generateTrajectory().
std::optional<double> cl_move_group_interface::CbCircularPivotMotion::linearSpeed_m_s_ |
Definition at line 33 of file cb_circular_pivot_motion.hpp.
Referenced by generateTrajectory().
|
protected |
Definition at line 55 of file cb_circular_pivot_motion.hpp.
Referenced by CbCircularPivotMotion(), computeCurrentEndEffectorPoseRelativeToPivot(), createMarkers(), generateTrajectory(), and cl_move_group_interface::CbEndEffectorRotate::onEntry().
std::optional<geometry_msgs::msg::Pose> cl_move_group_interface::CbCircularPivotMotion::relativeInitialPose_ |
Definition at line 36 of file cb_circular_pivot_motion.hpp.
Referenced by computeCurrentEndEffectorPoseRelativeToPivot(), and generateTrajectory().