ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Hi for this particular case, launch.substitutions.TextSubstitution
what you might be looking for.
You can see see example usage of the case here;
joy_config = launch.substitutions.LaunchConfiguration('joy_config')
joy_config_dec= launch.actions.DeclareLaunchArgument('joy_config', default_value='ps3'),
final_string = os.path.join(joy_config, launch.substitutions.TextSubstitution(text='.config.yaml'))
The final string should be "ps3.config.yaml"
You can see complete example and refernce at here ; https://github.com/ros2/teleop_twist_joy/tree/foxy/config
2 | No.2 Revision |
Hi for this particular case, launch.substitutions.TextSubstitution
might be what you might be are looking for.
You can see see example usage of the case here;
joy_config = launch.substitutions.LaunchConfiguration('joy_config')
joy_config_dec= launch.actions.DeclareLaunchArgument('joy_config', default_value='ps3'),
final_string = os.path.join(joy_config, launch.substitutions.TextSubstitution(text='.config.yaml'))
The final string should be "ps3.config.yaml"
You can see complete example and refernce at here ; https://github.com/ros2/teleop_twist_joy/tree/foxy/config
3 | No.3 Revision |
Hi for this particular case, launch.substitutions.TextSubstitution
might be what you are looking for.
You can see see example usage of the case here;
joy_config = launch.substitutions.LaunchConfiguration('joy_config')
joy_config_dec= launch.actions.DeclareLaunchArgument('joy_config', default_value='ps3'),
final_string = os.path.join(joy_config, launch.substitutions.TextSubstitution(text='.config.yaml'))
The final string should be "ps3.config.yaml"
You can see complete example and refernce reference at here ; https://github.com/ros2/teleop_twist_joy/tree/foxy/config
4 | No.4 Revision |
Hi for this particular case, launch.substitutions.TextSubstitution
might be what you are looking for.
You can see see example usage of the case here;
joy_config = launch.substitutions.LaunchConfiguration('joy_config')
joy_config_dec= launch.actions.DeclareLaunchArgument('joy_config', default_value='ps3'),
final_string = os.path.join(joy_config, launch.substitutions.TextSubstitution(text='.config.yaml'))
The final string should be "ps3.config.yaml""ps3.config.yaml
"
You can see complete example and reference at here ; https://github.com/ros2/teleop_twist_joy/tree/foxy/config