ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
DeclareLaunchArgument
can be used for this (which your code already imports btw). You could do:
number_of_uavs = DeclareLaunchArgument('number_of_uavs')
Check out the answer to What is different between DeclareLaunchArgument and LaunchConfiguration.
2 | No.2 Revision |
DeclareLaunchArgument
can be used for this (which your code already imports btw). You could do:
number_of_uavs = DeclareLaunchArgument('number_of_uavs')
DeclareLaunchArgument('number_of_uavs', default_value=1)
Check out the answer to What is different between DeclareLaunchArgument and LaunchConfiguration.
3 | No.3 Revision |
DeclareLaunchArgument
can be used for this (which your code already imports btw). You could do:
number_of_uavs = DeclareLaunchArgument('number_of_uavs', default_value=1)
Check out the answer to What is different between DeclareLaunchArgument and LaunchConfiguration.
Also make note of @sgvandijk's comment and his answer.