iterative_torque_limit_parameterization.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * BSD 3-Clause License
3  *
4  * Copyright (c) 2023, Re:Build AppliedLogix, LLC
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted provided that the following conditions are met:
9  *
10  * * Redistributions of source code must retain the above copyright notice, this
11  * list of conditions and the following disclaimer.
12  *
13  * * Redistributions in binary form must reproduce the above copyright notice,
14  * this list of conditions and the following disclaimer in the documentation
15  * and/or other materials provided with the distribution.
16  *
17  * * Neither the name of the copyright holder nor the names of its
18  * contributors may be used to endorse or promote products derived from
19  * this software without specific prior written permission.
20  *
21  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24  * ARE
25  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
26  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32  *******************************************************************************/
33 
34 /* Author: Andy Zelenak */
35 /* Description: Time-parameterize a trajectory with Time Optimal Trajectory Generation, then iterate until torque limits are obeyed. */
36 
37 #pragma once
38 
40 
41 namespace trajectory_processing
42 {
43 class IterativeTorqueLimitParameterization
44 {
45 public:
46  IterativeTorqueLimitParameterization(const double path_tolerance = 0.1, const double resample_dt = 0.1,
47  const double min_angle_change = 0.001);
48 
69  robot_trajectory::RobotTrajectory& trajectory, const geometry_msgs::Vector3& gravity_vector,
70  const std::vector<geometry_msgs::Wrench>& external_link_wrenches, const std::vector<double>& joint_torque_limits,
71  double accel_limit_decrement_factor, const std::unordered_map<std::string, double>& velocity_limits,
72  const std::unordered_map<std::string, double>& acceleration_limits, const double max_velocity_scaling_factor,
73  const double max_acceleration_scaling_factor) const;
74 
75 private:
77 };
78 } // namespace trajectory_processing
trajectory_processing::IterativeTorqueLimitParameterization::computeTimeStampsWithTorqueLimits
bool computeTimeStampsWithTorqueLimits(robot_trajectory::RobotTrajectory &trajectory, const geometry_msgs::Vector3 &gravity_vector, const std::vector< geometry_msgs::Wrench > &external_link_wrenches, const std::vector< double > &joint_torque_limits, double accel_limit_decrement_factor, const std::unordered_map< std::string, double > &velocity_limits, const std::unordered_map< std::string, double > &acceleration_limits, const double max_velocity_scaling_factor, const double max_acceleration_scaling_factor) const
Compute a trajectory with waypoints spaced equally in time (according to resample_dt_)....
Definition: iterative_torque_limit_parameterization.cpp:84
robot_trajectory::RobotTrajectory
Maintain a sequence of waypoints and the time durations between these waypoints.
Definition: robot_trajectory.h:84
trajectory_processing::TimeOptimalTrajectoryGeneration
Definition: time_optimal_trajectory_generation.h:173
time_optimal_trajectory_generation.h
trajectory_processing
Definition: iterative_spline_parameterization.h:43
trajectory_processing::IterativeTorqueLimitParameterization::IterativeTorqueLimitParameterization
IterativeTorqueLimitParameterization(const double path_tolerance=0.1, const double resample_dt=0.1, const double min_angle_change=0.001)
Definition: iterative_torque_limit_parameterization.cpp:77
trajectory_processing::IterativeTorqueLimitParameterization::totg_
TimeOptimalTrajectoryGeneration totg_
Definition: iterative_torque_limit_parameterization.h:138


moveit_core
Author(s): Ioan Sucan , Sachin Chitta , Acorn Pooley
autogenerated on Fri May 3 2024 02:28:41