Skip to content
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

[JTC] Deprecate start_with_holding (backport #1076) #1086

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions joint_trajectory_controller/src/joint_trajectory_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1002,8 +1002,24 @@ controller_interface::CallbackReturn JointTrajectoryController::on_activate(
read_state_from_state_interfaces(last_commanded_state_);
}

<<<<<<< HEAD
// The controller should start by holding position at the beginning of active state
add_new_trajectory_msg(set_hold_position());
=======
// Should the controller start by holding position at the beginning of active state?
if (params_.start_with_holding)
{
add_new_trajectory_msg(set_hold_position());
}
else
{
RCLCPP_WARN(
get_node()->get_logger(),
"Parameter \"start_with_holding\" is deprecated. "
"It will be removed in a future release and start with holding position will be the default "
"behavior.");
}
>>>>>>> ea66755 (Deprecate start with holding (#1076))
rt_is_holding_.writeFromNonRT(true);

// parse timeout parameter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,14 @@ joint_trajectory_controller:
one_of<>: [["splines", "none"]],
}
}
<<<<<<< HEAD
=======
start_with_holding: {
type: bool,
default_value: true,
description: "(Deprecated) If true, start with holding position after activation. Otherwise, no command will be sent until the first trajectory is received.",
}
>>>>>>> ea66755 (Deprecate start with holding (#1076))
allow_nonzero_velocity_at_trajectory_end: {
type: bool,
default_value: true,
Expand Down
Loading