Skip to content

Commit

Permalink
Keep old tricycle parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich committed Jan 3, 2025
1 parent 76962b5 commit 44252a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,20 @@ controller_interface::CallbackReturn TricycleSteeringController::configure_odome
{
tricycle_params_ = tricycle_param_listener_->get_params();

if (tricycle_params_.front_wheel_radius > 0.0)
if (tricycle_params_.front_wheels_radius > 0.0)
{
RCLCPP_WARN(
get_node()->get_logger(),
"DEPRECATED parameter 'front_wheel_radius', set 'traction_wheels_radius' instead");
tricycle_params_.traction_wheels_radius = tricycle_params_.front_wheel_radius;
tricycle_params_.traction_wheels_radius = tricycle_params_.front_wheels_radius;
}

if (tricycle_params_.rear_wheel_radius > 0.0)
if (tricycle_params_.rear_wheels_radius > 0.0)
{
RCLCPP_WARN(
get_node()->get_logger(),
"DEPRECATED parameter 'rear_wheel_radius', set 'traction_wheels_radius' instead");
tricycle_params_.traction_wheels_radius = tricycle_params_.rear_wheel_radius;
tricycle_params_.traction_wheels_radius = tricycle_params_.rear_wheels_radius;
}

const double traction_wheels_radius = tricycle_params_.traction_wheels_radius;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ tricycle_steering_controller:
# }
}

front_wheel_radius:
front_wheels_radius:
{
type: double,
default_value: 0.0,
description: "DEPRECATED: Use 'traction_wheels_radius'",
read_only: false,
}

rear_wheel_radius:
rear_wheels_radius:
{
type: double,
default_value: 0.0,
Expand Down

0 comments on commit 44252a1

Please sign in to comment.