simple_resample_filter.h
Go to the documentation of this file.
1 /*
2  * Software License Agreement (BSD License)
3  *
4  * Copyright (c) 2013, Southwest Research Institute
5  * Copyright (C) 2019, FUJISOFT
6  * All rights reserved.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that the following conditions are met:
10  *
11  * * Redistributions of source code must retain the above copyright
12  * notice, this list of conditions and the following disclaimer.
13  * * Redistributions in binary form must reproduce the above copyright
14  * notice, this list of conditions and the following disclaimer in the
15  * documentation and/or other materials provided with the distribution.
16  * * Neither the name of the Southwest Research Institute, nor the names
17  * of its contributors may be used to endorse or promote products derived
18  * from this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
24  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30  * POSSIBILITY OF SUCH DAMAGE.
31  */
32 
33 #ifndef SIMPLE_RESAMPLE_FILTER_H_
34 #define SIMPLE_RESAMPLE_FILTER_H_
35 
37 
38 /*
39  * These headers were part of the trajectory filter interface from the
40  * arm navigation system. These can no longer be included in a catkin based
41  * package.
42  #include <filters/filter_base.h>
43  #include <pluginlib/class_list_macros.h>
44  */
45 
47 {
48 
54 template<typename T>
55 
57  {
58  public:
67 
68  virtual bool configure();
69 
79  bool update(const T& trajectory_in, T& trajectory_out);
80 
90  bool interpolatePt(trajectory_msgs::JointTrajectoryPoint & p1, trajectory_msgs::JointTrajectoryPoint & p2,
91  double time_from_start, trajectory_msgs::JointTrajectoryPoint & interp_pt);
92 
93  private:
98  };
99 
104 
105 }
106 
107 #endif
SimpleResampleFilter< MessageAdapter > SimpleResampleFilterAdapter
Specializing trajectory filter implementation.
bool update(const T &trajectory_in, T &trajectory_out)
double sample_duration_
uniform sample duration (sec)
This version of the FilterBase<T> can be used to encapsulate the functionality from an arm navigation...
Definition: filter_base.h:124
virtual bool configure()
FilterBase method for the sub class to configure the filter This function must be implemented in the ...
This is a simple filter which performs a uniforming sampling of a trajectory using linear interpolati...
bool interpolatePt(trajectory_msgs::JointTrajectoryPoint &p1, trajectory_msgs::JointTrajectoryPoint &p2, double time_from_start, trajectory_msgs::JointTrajectoryPoint &interp_pt)
Perform interpolation between p1 and p2. Time from start must be in between p1 and p2 times...


fsrobo_r_trajectory_filters
Author(s): F-ROSROBO
autogenerated on Sun Feb 9 2020 03:58:38