-
Notifications
You must be signed in to change notification settings - Fork 536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor MoveIt Simple Controller Manager to use generate param library #2580
base: main
Are you sure you want to change the base?
Changes from all commits
035f83a
1d70d9b
6489d19
c4ea98b
edaaac1
0192336
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,7 @@ | |
/* Author: Michael Ferguson, Ioan Sucan, E. Gil Jones */ | ||
|
||
#include <moveit_simple_controller_manager/follow_joint_trajectory_controller_handle.h> | ||
#include <rclcpp/duration.hpp> | ||
|
||
using namespace std::placeholders; | ||
|
||
|
@@ -97,6 +98,19 @@ bool FollowJointTrajectoryControllerHandle::sendTrajectory(const moveit_msgs::ms | |
return true; | ||
} | ||
|
||
void FollowJointTrajectoryControllerHandle::setPathTolerance(double /*path_tolerance*/) | ||
{ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's print a warning that they're not doing anything at the moment. Why do we need them in the first place? |
||
} | ||
|
||
void FollowJointTrajectoryControllerHandle::setGoalTolerance(double /*goal_tolerance*/) | ||
{ | ||
} | ||
|
||
void FollowJointTrajectoryControllerHandle::setGoalTimeTolerance(double goal_time_tolerance) | ||
{ | ||
goal_template_.goal_time_tolerance = rclcpp::Duration::from_seconds(goal_time_tolerance); | ||
} | ||
|
||
// TODO(JafarAbdi): Revise parameter lookup | ||
// void FollowJointTrajectoryControllerHandle::configure(XmlRpc::XmlRpcValue& config) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove? |
||
//{ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
moveit_simple_controller_manager: | ||
controller_names: { | ||
type: string_array, | ||
default_value: [], | ||
description: "List of controllers for MoveIt's controller manager", | ||
validation: { | ||
not_empty<>: [] | ||
} | ||
} | ||
__map_controller_names: | ||
action_ns: { | ||
type: string, | ||
default_value: "", | ||
description: "Action namespace for the controller. The action topic names will start with `/controller_name/action_ns`", | ||
validation: { | ||
not_empty<>: [] | ||
} | ||
} | ||
type: { | ||
type: string, | ||
default_value: "", | ||
description: "Controller type. FollowJointTrajectory or GripperCommand", | ||
validation: { | ||
not_empty<>: [] | ||
} | ||
} | ||
make_default: { | ||
type: bool, | ||
default_value: false, | ||
description: "This param was originally named default. Marking a controller as | ||
default makes MoveIt prefer this controller when multiple options are available.", | ||
validation: { | ||
not_empty<>: [] | ||
} | ||
} | ||
joints: { | ||
type: string_array, | ||
default_value: [], | ||
description: "list of joints to actuate", | ||
validation: { | ||
not_empty<>: [] | ||
} | ||
} | ||
# parameters for gripper controllers | ||
max_effort: { | ||
type: double, | ||
default_value: 0.0, | ||
description: "Max Effort. Parameter to be set if using GripperCommand" | ||
} | ||
parallel: { | ||
type: bool, | ||
default_value: false, | ||
description: "Parallel gripper require exactly two joints. If true, specify only two joints. Parameter to be set if using GripperCommand" | ||
} | ||
command_joint: { | ||
type: string, | ||
default_value: "", | ||
description: "If not parallel, set the joint to command. Parameter to be set if using GripperCommand" | ||
} | ||
allow_failure: { | ||
type: bool, | ||
default_value: false, | ||
description: "Parameter to be set if using GripperCommand" | ||
} | ||
# parameters for follow joint trajectory controllers | ||
goal_time_tolerance: { | ||
type: double, | ||
default_value: 0.0, | ||
description: "Parameter to be set if using FollowJointTrajectory" | ||
} | ||
# __map_joints: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why are these ones commented out? |
||
# path_tolerance: | ||
# position: { | ||
# type: double, | ||
# default_value: 0.0, | ||
# description: "Parameter to be set if using FollowJointTrajectory" | ||
# } | ||
# velocity: { | ||
# type: double, | ||
# default_value: 0.0, | ||
# description: "Parameter to be set if using FollowJointTrajectory" | ||
# } | ||
# acceleration: { | ||
# type: double, | ||
# default_value: 0.0, | ||
# description: "Parameter to be set if using FollowJointTrajectory" | ||
# } | ||
# goal_tolerance: | ||
# position: { | ||
# type: double, | ||
# default_value: 0.0, | ||
# description: "Parameter to be set if using FollowJointTrajectory" | ||
# } | ||
# velocity: { | ||
# type: double, | ||
# default_value: 0.0, | ||
# description: "Parameter to be set if using FollowJointTrajectory" | ||
# } | ||
# acceleration: { | ||
# type: double, | ||
# default_value: 0.0, | ||
# description: "Parameter to be set if using FollowJointTrajectory" | ||
# } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this comment can be removed or updated