ShadowHandUtilityLibrary
shadow_planning_options.hpp
Go to the documentation of this file.
1 //
2 // Created by kganguly on 5/8/19.
3 //
4 
5 #pragma once
6 
11 namespace shadow_planning {
52  std::string end_effector_name;
53 
58  : set_planning_time(2.0), allow_replanning(false), num_attempts(1),
59  end_effector_name(""), goal_position_tolerance(0.01),
60  velocity_scaling_factor(0.75), acceleration_scaling_factor(1.0),
61  goal_orientation_tolerance(0.01), goal_joint_tolerance(0.01){};
62 
77  PlanningOptions(double set_planning_time, bool allow_replanning,
78  int num_attempts, double goal_position_tolerance,
79  double velocity_scaling_factor,
80  double acceleration_scaling_factor,
81  double goal_orientation_tolerance,
82  double goal_joint_tolerance, std::string end_effector_name)
83  : set_planning_time(set_planning_time),
84  allow_replanning(allow_replanning), num_attempts(num_attempts),
85  goal_position_tolerance(goal_position_tolerance),
86  velocity_scaling_factor(velocity_scaling_factor),
87  acceleration_scaling_factor(acceleration_scaling_factor),
88  goal_orientation_tolerance(goal_orientation_tolerance),
89  goal_joint_tolerance(goal_joint_tolerance){};
90 };
91 } // namespace shadow_planning
double goal_joint_tolerance
Tolerance in goal joint angle when planning.
Definition: shadow_planning_options.hpp:47
int num_attempts
Number of attempts for replanning.
Definition: shadow_planning_options.hpp:23
double acceleration_scaling_factor
The scaling factor for acceleration of UR-10.
Definition: shadow_planning_options.hpp:35
double goal_position_tolerance
Tolerance in goal position when planning.
Definition: shadow_planning_options.hpp:39
std::string end_effector_name
Name of end effector to plan for.
Definition: shadow_planning_options.hpp:52
Struct to set planning parameters for MoveIt planning.
Definition: shadow_planning_options.hpp:15
PlanningOptions(double set_planning_time, bool allow_replanning, int num_attempts, double goal_position_tolerance, double velocity_scaling_factor, double acceleration_scaling_factor, double goal_orientation_tolerance, double goal_joint_tolerance, std::string end_effector_name)
Custom constructor, for setting user defined values.
Definition: shadow_planning_options.hpp:77
double set_planning_time
Planning time limit.
Definition: shadow_planning_options.hpp:19
double velocity_scaling_factor
The scaling factor for velocity of UR-10.
Definition: shadow_planning_options.hpp:31
PlanningOptions()
Default constructor, sets some reasonable defaults.
Definition: shadow_planning_options.hpp:57
bool allow_replanning
Allow replanning if solution not found.
Definition: shadow_planning_options.hpp:27
double goal_orientation_tolerance
Tolerance in goal orientation when planning.
Definition: shadow_planning_options.hpp:43
Utility functions for planning and execution routines to control the ShadowHand.