Skip to content

Commit

Permalink
Deprecate also for steering_controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich committed Apr 4, 2024
1 parent cb2471e commit f3920d3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
5 changes: 1 addition & 4 deletions steering_controllers_library/doc/userdoc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Nomenclature used for the controller is used from `wikipedia <https://en.wikiped
Execution logic of the controller
----------------------------------

The controller uses velocity input, i.e., stamped or unstamped Twist messages where linear ``x`` and angular ``z`` components are used.
The controller uses velocity input, i.e., stamped Twist messages where linear ``x`` and angular ``z`` components are used.
Angular component under
Values in other components are ignored.
In the chain mode the controller provides two reference interfaces, one for linear velocity and one for steering angle position.
Expand Down Expand Up @@ -74,9 +74,6 @@ Subscribers
Used when controller is not in chained mode (``in_chained_mode == false``).

- <controller_name>/reference [geometry_msgs/msg/TwistStamped]
If parameter ``use_stamped_vel`` is ``true``.
- <controller_name>/reference_unstamped [geometry_msgs/msg/Twist]
If parameter ``use_stamped_vel`` is ``false``.

Publishers
,,,,,,,,,,,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ controller_interface::CallbackReturn SteeringControllersLibrary::on_configure(
ref_timeout_ = rclcpp::Duration::from_seconds(params_.reference_timeout);
if (params_.use_stamped_vel)
{
RCLCPP_WARN(
get_node()->get_logger(),
"[Deprecated] Using geometry_msgs::msg::Twist instead of TwistStamped is deprecated.");
ref_subscriber_twist_ = get_node()->create_subscription<ControllerTwistReferenceMsg>(
"~/reference", subscribers_qos,
std::bind(&SteeringControllersLibrary::reference_callback, this, std::placeholders::_1));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ steering_controllers_library:
use_stamped_vel: {
type: bool,
default_value: false,
description: "Choice of vel type, if use_stamped_vel is false then ``geometry_msgs::msg::Twist`` is taken as vel msg type, if
description: "(Deprecated) Choice of vel type, if use_stamped_vel is false then ``geometry_msgs::msg::Twist`` is taken as vel msg type, if
use_stamped_vel is true then ``geometry_msgs::msg::TwistStamped`` is taken as vel msg type",
read_only: false,
}

0 comments on commit f3920d3

Please sign in to comment.