Skip to content

Commit a33e12f

Browse files
committed
add args to launchfiles; add new params
1 parent d620073 commit a33e12f

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

launch/test-mapping.launch

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
<?xml version="1.0"?>
22
<launch>
3+
<arg name="cloud_in" default="/pcl" />
4+
<arg name="robot" default="p3dx" />
35
<node pkg="octomap_server" type="octomap_server_node" name="octomap_server">
4-
<remap from="cloud_in" to="/pcl"/>
6+
<remap from="cloud_in" to="$(arg cloud_in)"/>
57
<param name="resolution" value="0.05" />
68
<param name="sensor_model/hit" type="double" value="0.7" />
79
<param name="sensor_model/miss" type="double" value="0.4" />
810
<param name="sensor_model/min" type="double" value="0.12" />
911
<param name="sensor_model/max" type="double" value="0.97" />
1012
<param name="sensor_model/max_range" type="double" value="3.0" />
11-
<rosparam command="load" file="$(find octomap_path_planner)/launch/vrep-p3dx.yaml" />
13+
<rosparam command="load" file="$(find octomap_path_planner)/launch/vrep-$(arg robot).yaml" />
1214
</node>
1315
</launch>

launch/test-pathplanner.launch

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
<?xml version="1.0"?>
22
<launch>
3+
<arg name="robot" default="p3dx" />
34
<node pkg="octomap_path_planner" type="octomap_path_planner_node" name="octomap_path_planner">
45
<remap from="octree_in" to="/octomap_binary"/>
56
<remap from="goal_in" to="/clicked_point"/>
67
<remap from="twist_out" to="/cmd_vel"/>
78
<param name="treat_unknown_as_free" type="bool" value="true" />
8-
<rosparam command="load" file="$(find octomap_path_planner)/launch/vrep-p3dx.yaml" />
9+
<param name="goal_reached_threshold" value="0.25" />
10+
<param name="controller_frequency" value="2.0" />
11+
<param name="twist_linear_gain" value="0.5" />
12+
<param name="twist_angulear_gain" value="1.0" />
13+
<param name="max_superable_height" value="0.25" />
14+
<rosparam command="load" file="$(find octomap_path_planner)/launch/vrep-$(arg robot).yaml" />
915
</node>
1016
</launch>

0 commit comments

Comments
 (0)