Skip to content

Commit

Permalink
Do default to preconfigured RViz config if no config is given
Browse files Browse the repository at this point in the history
  • Loading branch information
fmauch committed Jul 6, 2022
1 parent 4b04519 commit 9bcb0aa
Show file tree
Hide file tree
Showing 14 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion ur10_moveit_config/launch/demo.launch
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

<!-- Run Rviz and load the default config to see the state of the move_group node -->
<include file="$(find ur10_moveit_config)/launch/moveit_rviz.launch" if="$(arg use_rviz)">
<arg name="rviz_config" value="$(find ur10_moveit_config)/launch/moveit.rviz"/>
<arg name="config" value="$(find ur10_moveit_config)/launch/moveit.rviz"/>
<arg name="debug" value="$(arg debug)"/>
</include>

Expand Down
6 changes: 3 additions & 3 deletions ur10_moveit_config/launch/moveit_rviz.launch
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<arg unless="$(arg debug)" name="launch_prefix" value="" />
<arg if="$(arg debug)" name="launch_prefix" value="gdb --ex run --args" />

<arg name="rviz_config" default="" />
<arg if="$(eval rviz_config=='')" name="command_args" value="" />
<arg unless="$(eval rviz_config=='')" name="command_args" value="-d $(arg rviz_config)" />
<arg name="config" default="" />
<arg unless="$(eval config=='')" name="command_args" value="-d $(arg config)" />
<arg if="$(eval config=='')" name="command_args" value="-d $(find ur10_moveit_config)/launch/moveit.rviz"/>

<node name="$(anon rviz)" launch-prefix="$(arg launch_prefix)" pkg="rviz" type="rviz" respawn="false"
args="$(arg command_args)" output="screen">
Expand Down
2 changes: 1 addition & 1 deletion ur10e_moveit_config/launch/demo.launch
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

<!-- Run Rviz and load the default config to see the state of the move_group node -->
<include file="$(find ur10e_moveit_config)/launch/moveit_rviz.launch" if="$(arg use_rviz)">
<arg name="rviz_config" value="$(find ur10e_moveit_config)/launch/moveit.rviz"/>
<arg name="config" value="$(find ur10e_moveit_config)/launch/moveit.rviz"/>
<arg name="debug" value="$(arg debug)"/>
</include>

Expand Down
6 changes: 3 additions & 3 deletions ur10e_moveit_config/launch/moveit_rviz.launch
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<arg unless="$(arg debug)" name="launch_prefix" value="" />
<arg if="$(arg debug)" name="launch_prefix" value="gdb --ex run --args" />

<arg name="rviz_config" default="" />
<arg if="$(eval rviz_config=='')" name="command_args" value="" />
<arg unless="$(eval rviz_config=='')" name="command_args" value="-d $(arg rviz_config)" />
<arg name="config" default="" />
<arg unless="$(eval config=='')" name="command_args" value="-d $(arg config)" />
<arg if="$(eval config=='')" name="command_args" value="-d $(find ur10e_moveit_config)/launch/moveit.rviz"/>

<node name="$(anon rviz)" launch-prefix="$(arg launch_prefix)" pkg="rviz" type="rviz" respawn="false"
args="$(arg command_args)" output="screen">
Expand Down
2 changes: 1 addition & 1 deletion ur16e_moveit_config/launch/demo.launch
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

<!-- Run Rviz and load the default config to see the state of the move_group node -->
<include file="$(find ur16e_moveit_config)/launch/moveit_rviz.launch" if="$(arg use_rviz)">
<arg name="rviz_config" value="$(find ur16e_moveit_config)/launch/moveit.rviz"/>
<arg name="config" value="$(find ur16e_moveit_config)/launch/moveit.rviz"/>
<arg name="debug" value="$(arg debug)"/>
</include>

Expand Down
6 changes: 3 additions & 3 deletions ur16e_moveit_config/launch/moveit_rviz.launch
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<arg unless="$(arg debug)" name="launch_prefix" value="" />
<arg if="$(arg debug)" name="launch_prefix" value="gdb --ex run --args" />

<arg name="rviz_config" default="" />
<arg if="$(eval rviz_config=='')" name="command_args" value="" />
<arg unless="$(eval rviz_config=='')" name="command_args" value="-d $(arg rviz_config)" />
<arg name="config" default="" />
<arg unless="$(eval config=='')" name="command_args" value="-d $(arg config)" />
<arg if="$(eval config=='')" name="command_args" value="-d $(find ur16e_moveit_config)/launch/moveit.rviz"/>

<node name="$(anon rviz)" launch-prefix="$(arg launch_prefix)" pkg="rviz" type="rviz" respawn="false"
args="$(arg command_args)" output="screen">
Expand Down
2 changes: 1 addition & 1 deletion ur3_moveit_config/launch/demo.launch
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

<!-- Run Rviz and load the default config to see the state of the move_group node -->
<include file="$(find ur3_moveit_config)/launch/moveit_rviz.launch" if="$(arg use_rviz)">
<arg name="rviz_config" value="$(find ur3_moveit_config)/launch/moveit.rviz"/>
<arg name="config" value="$(find ur3_moveit_config)/launch/moveit.rviz"/>
<arg name="debug" value="$(arg debug)"/>
</include>

Expand Down
6 changes: 3 additions & 3 deletions ur3_moveit_config/launch/moveit_rviz.launch
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<arg unless="$(arg debug)" name="launch_prefix" value="" />
<arg if="$(arg debug)" name="launch_prefix" value="gdb --ex run --args" />

<arg name="rviz_config" default="" />
<arg if="$(eval rviz_config=='')" name="command_args" value="" />
<arg unless="$(eval rviz_config=='')" name="command_args" value="-d $(arg rviz_config)" />
<arg name="config" default="" />
<arg unless="$(eval config=='')" name="command_args" value="-d $(arg config)" />
<arg if="$(eval config=='')" name="command_args" value="-d $(find ur3_moveit_config)/launch/moveit.rviz"/>

<node name="$(anon rviz)" launch-prefix="$(arg launch_prefix)" pkg="rviz" type="rviz" respawn="false"
args="$(arg command_args)" output="screen">
Expand Down
2 changes: 1 addition & 1 deletion ur3e_moveit_config/launch/demo.launch
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

<!-- Run Rviz and load the default config to see the state of the move_group node -->
<include file="$(find ur3e_moveit_config)/launch/moveit_rviz.launch" if="$(arg use_rviz)">
<arg name="rviz_config" value="$(find ur3e_moveit_config)/launch/moveit.rviz"/>
<arg name="config" value="$(find ur3e_moveit_config)/launch/moveit.rviz"/>
<arg name="debug" value="$(arg debug)"/>
</include>

Expand Down
6 changes: 3 additions & 3 deletions ur3e_moveit_config/launch/moveit_rviz.launch
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<arg unless="$(arg debug)" name="launch_prefix" value="" />
<arg if="$(arg debug)" name="launch_prefix" value="gdb --ex run --args" />

<arg name="rviz_config" default="" />
<arg if="$(eval rviz_config=='')" name="command_args" value="" />
<arg unless="$(eval rviz_config=='')" name="command_args" value="-d $(arg rviz_config)" />
<arg name="config" default="" />
<arg unless="$(eval config=='')" name="command_args" value="-d $(arg config)" />
<arg if="$(eval config=='')" name="command_args" value="-d $(find ur3e_moveit_config)/launch/moveit.rviz"/>

<node name="$(anon rviz)" launch-prefix="$(arg launch_prefix)" pkg="rviz" type="rviz" respawn="false"
args="$(arg command_args)" output="screen">
Expand Down
2 changes: 1 addition & 1 deletion ur5_moveit_config/launch/demo.launch
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

<!-- Run Rviz and load the default config to see the state of the move_group node -->
<include file="$(find ur5_moveit_config)/launch/moveit_rviz.launch" if="$(arg use_rviz)">
<arg name="rviz_config" value="$(find ur5_moveit_config)/launch/moveit.rviz"/>
<arg name="config" value="$(find ur5_moveit_config)/launch/moveit.rviz"/>
<arg name="debug" value="$(arg debug)"/>
</include>

Expand Down
6 changes: 3 additions & 3 deletions ur5_moveit_config/launch/moveit_rviz.launch
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<arg unless="$(arg debug)" name="launch_prefix" value="" />
<arg if="$(arg debug)" name="launch_prefix" value="gdb --ex run --args" />

<arg name="rviz_config" default="" />
<arg if="$(eval rviz_config=='')" name="command_args" value="" />
<arg unless="$(eval rviz_config=='')" name="command_args" value="-d $(arg rviz_config)" />
<arg name="config" default="" />
<arg unless="$(eval config=='')" name="command_args" value="-d $(arg config)" />
<arg if="$(eval config=='')" name="command_args" value="-d $(find ur5_moveit_config)/launch/moveit.rviz"/>

<node name="$(anon rviz)" launch-prefix="$(arg launch_prefix)" pkg="rviz" type="rviz" respawn="false"
args="$(arg command_args)" output="screen">
Expand Down
2 changes: 1 addition & 1 deletion ur5e_moveit_config/launch/demo.launch
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

<!-- Run Rviz and load the default config to see the state of the move_group node -->
<include file="$(find ur5e_moveit_config)/launch/moveit_rviz.launch" if="$(arg use_rviz)">
<arg name="rviz_config" value="$(find ur5e_moveit_config)/launch/moveit.rviz"/>
<arg name="config" value="$(find ur5e_moveit_config)/launch/moveit.rviz"/>
<arg name="debug" value="$(arg debug)"/>
</include>

Expand Down
6 changes: 3 additions & 3 deletions ur5e_moveit_config/launch/moveit_rviz.launch
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<arg unless="$(arg debug)" name="launch_prefix" value="" />
<arg if="$(arg debug)" name="launch_prefix" value="gdb --ex run --args" />

<arg name="rviz_config" default="" />
<arg if="$(eval rviz_config=='')" name="command_args" value="" />
<arg unless="$(eval rviz_config=='')" name="command_args" value="-d $(arg rviz_config)" />
<arg name="config" default="" />
<arg unless="$(eval config=='')" name="command_args" value="-d $(arg config)" />
<arg if="$(eval config=='')" name="command_args" value="-d $(find ur5e_moveit_config)/launch/moveit.rviz"/>

<node name="$(anon rviz)" launch-prefix="$(arg launch_prefix)" pkg="rviz" type="rviz" respawn="false"
args="$(arg command_args)" output="screen">
Expand Down

0 comments on commit 9bcb0aa

Please sign in to comment.