cartesian_trajectory.h
Go to the documentation of this file.
1 // -- BEGIN LICENSE BLOCK ----------------------------------------------
2 // Copyright 2021 FZI Forschungszentrum Informatik
3 // Created on behalf of Universal Robots A/S
4 //
5 // Licensed under the Apache License, Version 2.0 (the "License");
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 // http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 // -- END LICENSE BLOCK ------------------------------------------------
17 
18 //-----------------------------------------------------------------------------
25 //-----------------------------------------------------------------------------
26 
27 #pragma once
28 
31 #include <cartesian_control_msgs/CartesianTrajectory.h>
32 #include <vector>
33 
35 {
46 {
47 public:
48  CartesianTrajectory() = default;
49 
57  CartesianTrajectory(const cartesian_control_msgs::CartesianTrajectory& ros_trajectory);
58 
59  virtual ~CartesianTrajectory(){};
60 
70  bool init(const cartesian_control_msgs::CartesianTrajectory& ros_trajectory);
71 
91  void sample(const CartesianTrajectorySegment::Time& time, CartesianState& state);
92 
93 private:
94  std::vector<CartesianTrajectorySegment> trajectory_data_;
95 };
96 
97 } // namespace ros_controllers_cartesian
std::vector< CartesianTrajectorySegment > trajectory_data_
void sample(const CartesianTrajectorySegment::Time &time, CartesianState &state)
Sample a trajectory at a specified time.
QuinticSplineSegment::Time Time
Relative time in seconds.
A class for Cartesian trajectory representation and interpolation.
bool init(const cartesian_control_msgs::CartesianTrajectory &ros_trajectory)
Initialize from ROS message.
Cartesian state with pose, velocity and acceleration.


cartesian_trajectory_interpolation
Author(s):
autogenerated on Thu Feb 23 2023 03:10:46