pos_vel_acc_state.h
Go to the documentation of this file.
1 
3 // Copyright (C) 2013, PAL Robotics S.L.
4 // Copyright (c) 2008, Willow Garage, Inc.
5 //
6 // Redistribution and use in source and binary forms, with or without
7 // modification, are permitted provided that the following conditions are met:
8 // * Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above copyright
11 // notice, this list of conditions and the following disclaimer in the
12 // documentation and/or other materials provided with the distribution.
13 // * Neither the name of PAL Robotics S.L. nor the names of its
14 // contributors may be used to endorse or promote products derived from
15 // this software without specific prior written permission.
16 //
17 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20 // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
21 // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27 // POSSIBILITY OF SUCH DAMAGE.
29 
31 
32 #ifndef TRAJECTORY_INTERFACE_POS_VEL_ACC_STATE_H
33 #define TRAJECTORY_INTERFACE_POS_VEL_ACC_STATE_H
34 
35 #include <vector>
36 
38 {
39 
43 template <class ScalarType>
45 {
46  typedef ScalarType Scalar;
47 
49 
64  PosVelAccState(const typename std::vector<Scalar>::size_type size)
65  : position( std::vector<Scalar>(size, static_cast<Scalar>(0))),
66  velocity( std::vector<Scalar>(size, static_cast<Scalar>(0))),
67  acceleration(std::vector<Scalar>(size, static_cast<Scalar>(0)))
68  {}
69 
70  std::vector<Scalar> position;
71  std::vector<Scalar> velocity;
72  std::vector<Scalar> acceleration;
73 };
74 
75 } // namespace
76 
77 #endif // header guard
PosVelAccState(const typename std::vector< Scalar >::size_type size)
Resource-preallocating constructor.
Multi-dof trajectory state containing position, velocity and acceleration data.


joint_trajectory_controller
Author(s): Adolfo Rodriguez Tsouroukdissian
autogenerated on Sat Apr 18 2020 03:58:18