-
Notifications
You must be signed in to change notification settings - Fork 314
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
Legitimate and global remaps (SetRemap) also triggers deprecation warning #2008
Comments
Hello! Thank you for reporting the issue. Do you mind sharing the log? Thank you |
Hello! Ideally, the deprecation notice should only be shown when the remapping is done through the ros2_control/controller_manager/src/controller_manager.cpp Lines 3508 to 3518 in 54a9226
If you can share more logs, it would be great,. Thank you! |
Here you have the log files for the ros2_control_node and the 4 spawners. You see the 3 spawners that have remap rules print out the log statement that only triggers when --controller-ros-args is used. And you see ros2_control_node print out the deprecation warning 3 times, which suggests that the code snippet you referenced is in fact also called when a spawner passes those arguments to the controller_manager and not just when you specify the remappings directly on the ros2_control_node. ros2_control_node = Node(
package="controller_manager",
executable="ros2_control_node",
parameters=[ros2_control_params],
)
joint_state_broadcaster_spawner = Node(
package="controller_manager",
executable="spawner",
arguments=["joint_state_broadcaster", "-c", "controller_manager"],
)
odometry_broadcaster_spawner = Node(
package="controller_manager",
executable="spawner",
arguments=[
"odometry_broadcaster",
"-c",
"controller_manager",
"--controller-ros-args",
"-r odometry_broadcaster/odom:=localisation/odom",
],
)
velocity_controller_spawner = Node(
package="controller_manager",
executable="spawner",
arguments=[
"velocity_controller",
"-c",
"controller_manager",
"--controller-ros-args",
" ".join(
[
"-r velocity_controller/cmd_vel:=cmd_vel",
"-r velocity_controller/cmd_vel_actuation:=cmd_vel_actuation",
"-r velocity_controller/kinematic_profile:=kinematic_profile",
]
),
],
)
torque_controller_spawner = Node(
package="controller_manager",
executable="spawner",
arguments=[
"torque_controller",
"-c",
"controller_manager",
"--inactive",
"--controller-ros-args",
"-r torque_controller/cmd_torque:=cmd_torque",
],
) python3_72886_1737452967043.log |
I realized what is going on, so the previous information I gave is not that relevant anymore. SetRemap("/diagnostics", ("/", robot_name, "/diagnostics")),
SetRemap("/parameter_events", ("/", robot_name, "/parameter_events")), This will also trigger the deprecation warning. It's also very confusing that in this unintended warning case, the warning gets printed out for each spawner. |
We do understand that it is hard to differentiate which type of remaps belongs to what, that's why the depreciation is printing irrespective of what it belongs to. We want users to use the new ways to remap for controllers and we don't want it to be a breaking change. The issue you are mentioning should be solved soon in some upcoming releases for rolling |
The new--controller-ros-args
-related deprecation warning is shown also when passing the remaps through the spawners as the deprecation warning suggests.Unless I did something wrong, but I doubt it. No remaps are passed to
ros2_control_node
and instead they are passed to the arguments ofspawner
. I see theSetting controller param "node_options_args" to...
log statement and my topics are correctly mapped. Having 4 spawners of which 3 have remappings, I thus see the deprecation warning 3 times.See comment below
The text was updated successfully, but these errors were encountered: