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_moveit2z::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) |
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_moveit2z::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_moveit2z::CbMoveEndEffectorTrajectory | |
std::vector< geometry_msgs::msg::PoseStamped > | endEffectorTrajectory_ |
ClMoveit2z * | movegroupClient_ = nullptr |
visualization_msgs::msg::MarkerArray | beahiorMarkers_ |
Private Member Functions | |
void | computeCurrentEndEffectorPoseRelativeToPivot () |
Additional Inherited Members | |
Protected Member Functions inherited from cl_moveit2z::CbMoveEndEffectorTrajectory | |
ComputeJointTrajectoryErrorCode | computeJointSpaceTrajectory (moveit_msgs::msg::RobotTrajectory &computedJointTrajectory) |
void | executeJointSpaceTrajectory (const moveit_msgs::msg::RobotTrajectory &computedJointTrajectory) |
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 () |
onEntry is executed in a new thread. However the current state cannot be left until the onEntry thread finishes. This flag can be checked from the onEntry thread to force finishing the thread. | |
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 rclcpp::Node::SharedPtr | getNode () const |
virtual rclcpp::Logger | getLogger () const |
Definition at line 29 of file cb_circular_pivot_motion.hpp.
cl_moveit2z::CbCircularPivotMotion::CbCircularPivotMotion | ( | std::optional< std::string > | tipLink = std::nullopt | ) |
Definition at line 29 of file cb_circular_pivot_motion.cpp.
cl_moveit2z::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_moveit2z::CbMoveEndEffectorTrajectory::tipLink_.
cl_moveit2z::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_moveit2z::CbMoveEndEffectorTrajectory::movegroupClient_, cl_moveit2z::ClMoveit2z::moveGroupClientInterface, planePivotPose_, relativeInitialPose_, and cl_moveit2z::CbMoveEndEffectorTrajectory::tipLink_.
Referenced by generateTrajectory().
|
overridevirtual |
Reimplemented from cl_moveit2z::CbMoveEndEffectorTrajectory.
Definition at line 213 of file cb_circular_pivot_motion.cpp.
References cl_moveit2z::CbMoveEndEffectorTrajectory::beahiorMarkers_, cl_moveit2z::CbMoveEndEffectorTrajectory::createMarkers(), smacc2::ISmaccClientBehavior::getNode(), and planePivotPose_.
|
overridevirtual |
Implements cl_moveit2z::CbMoveEndEffectorTrajectory.
Definition at line 53 of file cb_circular_pivot_motion.cpp.
References angularSpeed_rad_s_, computeCurrentEndEffectorPoseRelativeToPivot(), deltaRadians_, cl_moveit2z::CbMoveEndEffectorTrajectory::endEffectorTrajectory_, smacc2::ISmaccClientBehavior::getLogger(), smacc2::ISmaccClientBehavior::getName(), linearSpeed_m_s_, planePivotPose_, and relativeInitialPose_.
std::optional<double> cl_moveit2z::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_moveit2z::CbEndEffectorRotate::CbEndEffectorRotate(), and generateTrajectory().
std::optional<double> cl_moveit2z::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_moveit2z::CbEndEffectorRotate::onEntry().
std::optional<geometry_msgs::msg::Pose> cl_moveit2z::CbCircularPivotMotion::relativeInitialPose_ |
Definition at line 36 of file cb_circular_pivot_motion.hpp.
Referenced by computeCurrentEndEffectorPoseRelativeToPivot(), and generateTrajectory().