SMACC
Loading...
Searching...
No Matches
smacc_client_library
move_group_interface_client
src
move_group_interface_client
client_behaviors
cb_execute_last_trajectory.cpp
Go to the documentation of this file.
1
/*****************************************************************************************************************
2
* ReelRobotix Inc. - Software License Agreement Copyright (c) 2018-2020
3
* Authors: Pablo Inigo Blasco, Brett Aldrich
4
*
5
******************************************************************************************************************/
6
#include <
move_group_interface_client/client_behaviors/cb_execute_last_trajectory.h
>
7
#include <
move_group_interface_client/components/cp_trajectory_history.h
>
8
9
namespace
cl_move_group_interface
10
{
11
CbExecuteLastTrajectory::CbExecuteLastTrajectory
()
12
{
13
}
14
15
CbExecuteLastTrajectory::~CbExecuteLastTrajectory
()
16
{
17
18
}
19
20
void
CbExecuteLastTrajectory::onEntry
()
21
{
22
this->
requiresClient
(
movegroupClient_
);
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
}
46
47
}
// namespace cl_move_group_interface
cb_execute_last_trajectory.h
cl_move_group_interface::CbExecuteLastTrajectory::CbExecuteLastTrajectory
CbExecuteLastTrajectory()
Definition:
cb_execute_last_trajectory.cpp:11
cl_move_group_interface::CbExecuteLastTrajectory::~CbExecuteLastTrajectory
virtual ~CbExecuteLastTrajectory()
Definition:
cb_execute_last_trajectory.cpp:15
cl_move_group_interface::CbExecuteLastTrajectory::onEntry
virtual void onEntry() override
Definition:
cb_execute_last_trajectory.cpp:20
cl_move_group_interface::CbMoveEndEffectorTrajectory::executeJointSpaceTrajectory
void executeJointSpaceTrajectory(const moveit_msgs::RobotTrajectory &computedJointTrajectory)
Definition:
cb_move_end_effector_trajectory.cpp:230
cl_move_group_interface::CbMoveEndEffectorTrajectory::movegroupClient_
ClMoveGroup * movegroupClient_
Definition:
cb_move_end_effector_trajectory.h:93
cl_move_group_interface::CpTrajectoryHistory
Definition:
cp_trajectory_history.h:24
cl_move_group_interface::CpTrajectoryHistory::getLastTrajectory
bool getLastTrajectory(int backIndex, moveit_msgs::RobotTrajectory &trajectory)
Definition:
cp_trajectory_history.cpp:12
smacc::ISmaccClientBehavior::requiresComponent
void requiresComponent(SmaccComponentType *&storage)
Definition:
smacc_client_behavior_impl.h:60
smacc::ISmaccClientBehavior::requiresClient
void requiresClient(SmaccClientType *&storage)
Definition:
smacc_client_behavior_impl.h:54
cp_trajectory_history.h
cl_move_group_interface
Definition:
cl_movegroup.h:19
Generated by
1.9.5