SMACC
Loading...
Searching...
No Matches
Public Member Functions | List of all members
cl_move_group_interface::CbExecuteLastTrajectory Class Reference

#include <cb_execute_last_trajectory.h>

Inheritance diagram for cl_move_group_interface::CbExecuteLastTrajectory:
Inheritance graph
Collaboration diagram for cl_move_group_interface::CbExecuteLastTrajectory:
Collaboration graph

Public Member Functions

 CbExecuteLastTrajectory ()
 
virtual ~CbExecuteLastTrajectory ()
 
virtual void onEntry () override
 
- Public Member Functions inherited from cl_move_group_interface::CbMoveEndEffectorTrajectory
 CbMoveEndEffectorTrajectory (std::string tipLink="")
 
 CbMoveEndEffectorTrajectory (const std::vector< geometry_msgs::PoseStamped > &endEffectorTrajectory, std::string tipLink="")
 
template<typename TOrthogonal , typename TSourceObject >
void onOrthogonalAllocation ()
 
virtual void onEntry () override
 
virtual void onExit () override
 
virtual void update () override
 
- Public Member Functions inherited from smacc::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)
 
- Public Member Functions inherited from smacc::ISmaccClientBehavior
 ISmaccClientBehavior ()
 
virtual ~ISmaccClientBehavior ()
 
ISmaccStateMachinegetStateMachine ()
 
std::string getName () const
 
template<typename SmaccClientType >
void requiresClient (SmaccClientType *&storage)
 
template<typename SmaccComponentType >
void requiresComponent (SmaccComponentType *&storage)
 
ros::NodeHandle getNode ()
 
- Public Member Functions inherited from smacc::ISmaccUpdatable
 ISmaccUpdatable ()
 
 ISmaccUpdatable (ros::Duration duration)
 
void executeUpdate ()
 
void setUpdatePeriod (ros::Duration duration)
 

Additional Inherited Members

- Public Attributes inherited from cl_move_group_interface::CbMoveEndEffectorTrajectory
boost::optional< std::string > group_
 
boost::optional< std::string > tipLink_
 
boost::optional< boolallowInitialTrajectoryStateJointDiscontinuity_
 
- Protected Member Functions inherited from cl_move_group_interface::CbMoveEndEffectorTrajectory
ComputeJointTrajectoryErrorCode computeJointSpaceTrajectory (moveit_msgs::RobotTrajectory &computedJointTrajectory)
 
void executeJointSpaceTrajectory (const moveit_msgs::RobotTrajectory &computedJointTrajectory)
 
virtual void generateTrajectory ()
 
virtual void createMarkers ()
 
void getCurrentEndEffectorPose (std::string globalFrame, tf::StampedTransform &currentEndEffectorTransform)
 
- Protected Member Functions inherited from smacc::SmaccAsyncClientBehavior
virtual void executeOnEntry () override
 
virtual void executeOnExit () override
 
void postSuccessEvent ()
 
void postFailureEvent ()
 
virtual void dispose () override
 
- Protected Member Functions inherited from smacc::ISmaccClientBehavior
virtual void runtimeConfigure ()
 
virtual void onEntry ()
 
virtual void onExit ()
 
template<typename EventType >
void postEvent (const EventType &ev)
 
template<typename EventType >
void postEvent ()
 
ISmaccStategetCurrentState ()
 
virtual void executeOnEntry ()
 
virtual void executeOnExit ()
 
virtual void dispose ()
 
virtual void update ()=0
 
- Protected Attributes inherited from cl_move_group_interface::CbMoveEndEffectorTrajectory
std::vector< geometry_msgs::PoseStamped > endEffectorTrajectory_
 
ClMoveGroupmovegroupClient_ = nullptr
 
visualization_msgs::MarkerArray beahiorMarkers_
 

Detailed Description

Definition at line 13 of file cb_execute_last_trajectory.h.

Constructor & Destructor Documentation

◆ CbExecuteLastTrajectory()

cl_move_group_interface::CbExecuteLastTrajectory::CbExecuteLastTrajectory ( )

Definition at line 11 of file cb_execute_last_trajectory.cpp.

12 {
13 }

◆ ~CbExecuteLastTrajectory()

cl_move_group_interface::CbExecuteLastTrajectory::~CbExecuteLastTrajectory ( )
virtual

Definition at line 15 of file cb_execute_last_trajectory.cpp.

16 {
17
18 }

Member Function Documentation

◆ onEntry()

void cl_move_group_interface::CbExecuteLastTrajectory::onEntry ( )
overridevirtual

Reimplemented from cl_move_group_interface::CbMoveEndEffectorTrajectory.

Definition at line 20 of file cb_execute_last_trajectory.cpp.

21 {
23
24 CpTrajectoryHistory *trajectoryHistory;
25 this->requiresComponent(trajectoryHistory);
26
27 // this->generateTrajectory();
28 // endEffectorTrajectory_ =
29
30 // if (this->endEffectorTrajectory_.size() == 0)
31 // {
32 // ROS_WARN_STREAM("[" << smacc::demangleSymbol(typeid(*this).name()) << "] No points in the trajectory. Skipping behavior.");
33 // return;
34 // }
35
36 //this->createMarkers();
37 //markersInitialized_ = true;
38
39 moveit_msgs::RobotTrajectory trajectory;
40
41 if (trajectoryHistory->getLastTrajectory(trajectory))
42 {
43 this->executeJointSpaceTrajectory(trajectory);
44 }
45 }
void executeJointSpaceTrajectory(const moveit_msgs::RobotTrajectory &computedJointTrajectory)
void requiresComponent(SmaccComponentType *&storage)
void requiresClient(SmaccClientType *&storage)

References cl_move_group_interface::CbMoveEndEffectorTrajectory::executeJointSpaceTrajectory(), cl_move_group_interface::CpTrajectoryHistory::getLastTrajectory(), cl_move_group_interface::CbMoveEndEffectorTrajectory::movegroupClient_, smacc::ISmaccClientBehavior::requiresClient(), and smacc::ISmaccClientBehavior::requiresComponent().

Here is the call graph for this function:

The documentation for this class was generated from the following files: