Closed mikaelarguedas closed 5 years ago
This seem to work so far.
I loaded the component into it's own container to keep it semantically separated from the driver ones.
How I tested it:
# Shell 1 ros2 launch confbot_bringup confbot_bringup.launch.py # Shell 2 ros2 run rviz2 rviz2 -d `ros2 pkg prefix confbot_bringup --share`/config/confbot.rviz # Shell 3 ros2 lifecycle set /confbot_laser 1 ros2 lifecycle set /confbot_laser 3 ros2 component list ros2 component unload /confbot_sensors_container 1 ros2 component types ros2 component load /confbot_sensors_container confbot_sensors confbot_sensors::nodes::ConfbotLaser ros2 lifecycle set /confbot_laser 1 ros2 lifecycle set /confbot_laser 3
Note: the terminal with the launch file will not print anything for the component once it's been unloader -> reloaded
looks like we've had the same idea here
This seem to work so far.
I loaded the component into it's own container to keep it semantically separated from the driver ones.
How I tested it:
Note: the terminal with the launch file will not print anything for the component once it's been unloader -> reloaded