Skip to content

Commit

Permalink
Use robot_namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
rafal-gorecki committed Jan 3, 2024
1 parent 363b8e6 commit bca09c4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Inside the image there is a custom `/husarion_utils/astra.launch.py` that is not
| `launch_file` | Name of launch file from repo `sllidar_ros2` to run | `sllidar_launch.py` |
| `serial_baudrate` | Baudrate of connected lidar (depend on your RPlidar model) | `115200` |
| `serial_port` | USB port of connected lidar | `/dev/ttyUSB0` |
| `robot_namespace` | Namespace which will appear in front of all topics (including `/tf` and `/tf_static`). | `env("ROS_NAMESPACE")` (`""` if not specified) |
| `robot_namespace` | Namespace which will appear in front of all topics (including `/tf` and `/tf_static`). | `env("ROBOT_namespace")` (`""` if not specified) |
| `device_namespace` | Sensor namespace that will appear before all non absolute topics and TF frames, used for distinguishing multiple cameras on the same robot. | `""` |

Using both `device_namespace` and `robot_namespace` makes:
Expand Down
2 changes: 1 addition & 1 deletion demo/.env
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# To use multimle devices on multible robot you have to specify following field

# Uncomment to add robot namespace
# ROS_NAMESPACE=robot
# ROBOT_namespace=robot
2 changes: 1 addition & 1 deletion demo/rviz.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def generate_launch_description():
[
DeclareLaunchArgument(
"robot_namespace",
default_value=EnvironmentVariable("ROS_NAMESPACE", default_value=""),
default_value=EnvironmentVariable("ROBOT_namespace", default_value=""),
description="Namespace which will appear in front of all topics (including /tf and /tf_static).",
),
DeclareLaunchArgument(
Expand Down
2 changes: 1 addition & 1 deletion husarion_utils/rplidar.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def generate_launch_description():
),
DeclareLaunchArgument(
"robot_namespace",
default_value=EnvironmentVariable("ROS_NAMESPACE", default_value=""),
default_value=EnvironmentVariable("ROBOT_namespace", default_value=""),
description="Namespace which will appear in front of all topics (including /tf and /tf_static).",
),
DeclareLaunchArgument(
Expand Down

0 comments on commit bca09c4

Please sign in to comment.