SMACC
Loading...
Searching...
No Matches
cp_trajectory_history.h
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#pragma once
7
8#include <smacc/component.h>
9
10#include <moveit_msgs/RobotTrajectory.h>
11#include <moveit_msgs/MoveItErrorCodes.h>
12
14{
15
17 {
18 moveit_msgs::RobotTrajectory trajectory;
19 moveit_msgs::MoveItErrorCodes result;
20 std::string name;
21 };
22
24 {
25
26 public:
27 bool getLastTrajectory(int backIndex, moveit_msgs::RobotTrajectory &trajectory);
28
29 bool getLastTrajectory(moveit_msgs::RobotTrajectory &trajectory);
30
31 void pushTrajectory(std::string name, const moveit_msgs::RobotTrajectory &trajectory, moveit_msgs::MoveItErrorCodes result);
32
33 private:
34 std::vector<TrajectoryHistoryEntry> trajectoryHistory_;
35 };
36} // namespace cl_move_group_interface
std::vector< TrajectoryHistoryEntry > trajectoryHistory_
bool getLastTrajectory(int backIndex, moveit_msgs::RobotTrajectory &trajectory)
void pushTrajectory(std::string name, const moveit_msgs::RobotTrajectory &trajectory, moveit_msgs::MoveItErrorCodes result)