Skip to content
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

Add namespace for wheel robot #52

Merged
merged 1 commit into from
Mar 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion ros/kxr_controller/launch/kxr_controller_for_wheel.launch
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<arg name="use_rcb4" default="false" doc="Flag to use RCB4 mini board"/>
<arg name="device" default="" doc="Device path"/>
<arg name="model_server_port" default="8123" />
<arg name="namespace" default="" />

<include file="$(find kxr_controller)/launch/kxr_controller.launch" >
<arg name="urdf_path" value="$(arg urdf_path)" />
Expand All @@ -18,8 +19,15 @@
<arg name="publish_imu" value="$(arg publish_imu)" />
<arg name="publish_sensor" value="$(arg publish_sensor)" />
<arg name="publish_battery_voltage" value="$(arg publish_battery_voltage)" />
<arg name="namespace" value="$(arg namespace)" />
</include>

<include file="$(find kxr_controller)/launch/diff_drive_controller.launch" />
<group if="$(eval len(arg('namespace')) > 0)" ns="$(arg namespace)" >
<include file="$(find kxr_controller)/launch/diff_drive_controller.launch" />
</group>

<group unless="$(eval len(arg('namespace')) > 0)">
<include file="$(find kxr_controller)/launch/diff_drive_controller.launch" />
</group>

</launch>
Loading