-
Notifications
You must be signed in to change notification settings - Fork 38
fix(nav): survive controller_server crashes — respawn + lifecycle watchdog #517
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
Changes from all commits
8a7b026
b1d8fca
62dffba
dc678fb
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 |
|---|---|---|
|
|
@@ -9,6 +9,7 @@ | |
| from launch.actions import DeclareLaunchArgument | ||
| from launch.substitutions import LaunchConfiguration | ||
| from launch_ros.actions import Node | ||
| from launch_ros.parameter_descriptions import ParameterValue | ||
| from mars_bringup.config_loader import settings_params | ||
|
|
||
|
|
||
|
|
@@ -27,15 +28,20 @@ def generate_launch_description() -> LaunchDescription: | |
| description="Velocity topic UniNavid commands should publish to", | ||
| ) | ||
|
|
||
| # ROS time source: false on the real robot (no /clock); the sim launcher | ||
| # passes true so this node follows the sim driver's /clock. | ||
| use_sim_time_arg = DeclareLaunchArgument("use_sim_time", default_value="false") | ||
| use_sim_time = {"use_sim_time": ParameterValue(LaunchConfiguration("use_sim_time"), value_type=bool)} | ||
|
Comment on lines
11
to
+34
Contributor
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. This launch file now imports |
||
|
|
||
| node = Node( | ||
| package="innate_uninavid", | ||
| executable="uninavid_node", | ||
| name="uninavid_node", | ||
| output="screen", | ||
| parameters=[LaunchConfiguration("params_file"), *settings_params()], | ||
| parameters=[LaunchConfiguration("params_file"), use_sim_time, *settings_params()], | ||
| remappings=[ | ||
| ("/cmd_vel", LaunchConfiguration("cmd_vel_topic")), | ||
| ], | ||
| ) | ||
|
|
||
| return LaunchDescription([params_arg, cmd_vel_topic_arg, node]) | ||
| return LaunchDescription([params_arg, cmd_vel_topic_arg, use_sim_time_arg, node]) | ||
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.
This launch file now imports
launch_ros.parameter_descriptions.ParameterValue, but theinnate_consolemanifest only declaresrclpyandstd_msgs. A clean install has no package-level dependency that pulls inlaunch_ros, soros2 launch innate_console console.launch.pycan fail while parsing the launch file.