Skip to content

Commit 9aff08e

Browse files
committed
squashed commit, fix issues and add automated map rotation
1 parent 13e1aed commit 9aff08e

16 files changed

+389
-81
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ add_library(HeuristicPartition
193193

194194
add_executable(coverage_path_server src/CoveragePathServer.cpp)
195195
add_executable(coverage_path_test_client test/coverage_path_test_client.cpp)
196+
add_executable(cpp_test_integration test/cpp_test_integration.cpp)
196197

197198

198199
## Rename C++ executable without prefix
@@ -224,6 +225,10 @@ target_link_libraries(coverage_path_test_client
224225
${catkin_LIBRARIES}
225226
)
226227

228+
target_link_libraries(cpp_test_integration
229+
${catkin_LIBRARIES}
230+
)
231+
227232
#############
228233
## Install ##
229234
#############

launch/.vscode/c_cpp_properties.json

Lines changed: 0 additions & 25 deletions
This file was deleted.

launch/.vscode/settings.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

launch/main.launch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33

44
<param name = "/allocate_method" value = "DARP" />
55
<param name = "/MST_shape" value = "DINIC" />
6-
<param name = "/free_threshold" value = "20.0" />
7-
86
<param name = "/useROSPlanner" value = "false" />
97
<param name = "/coverAndReturn" value = "false" />
10-
118
<param name = "/GA_max_iter" value = "200000" />
129
<param name = "/unchanged_iter" value = "2000" />
10+
<param name = "/hp_max_iter" value = "5000" />
11+
<param name = "/free_threshold" value = "0.0" /> <!-- [0; 100] 0 is free, 100 is occupied, at what point is a cell considered occpuied for cleaning after interpolation-->
12+
1313

1414
<param name = "/hp_max_iter" value = "5000" />
1515

16-
<node name="coverage_path_server" pkg="TMSTC_Star" type="coverage_path_server" />
16+
<node name="coverage_path_server" pkg="TMSTC_Star" type="coverage_path_server" output="screen"/>
1717
</launch>

launch/test.launch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<launch>
2-
<arg name="map_file" default="map.yaml"/>
2+
<arg name="map_file" default="barn_3.yaml"/>
33

44
<param name = "/allocate_method" value = "DARP" />
55
<param name = "/MST_shape" value = "DINIC" />
@@ -8,7 +8,7 @@
88
<param name = "/GA_max_iter" value = "200000" />
99
<param name = "/unchanged_iter" value = "2000" />
1010
<param name = "/hp_max_iter" value = "5000" />
11-
<param name = "/free_threshold" value = "20.0" /> <!-- [0; 100] 0 is free, 100 is occupied, at what point is a cell considered occpuied for cleaning after interpolation-->
11+
<param name = "/free_threshold" value = "0.0" /> <!-- [0; 100] 0 is free, 100 is occupied, at what point is a cell considered occpuied for cleaning after interpolation-->
1212

1313
<param name = "/test_map_file" value = "$(arg map_file)"/>
1414

launch/test_integration.launch

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<launch>
2+
<arg name="map_file" default="map.yaml"/>
3+
4+
<param name = "/allocate_method" value = "DARP" />
5+
<param name = "/MST_shape" value = "DINIC" />
6+
<param name = "/useROSPlanner" value = "false" />
7+
<param name = "/coverAndReturn" value = "false" />
8+
<param name = "/GA_max_iter" value = "200000" />
9+
<param name = "/unchanged_iter" value = "2000" />
10+
<param name = "/hp_max_iter" value = "5000" />
11+
<param name = "/free_threshold" value = "20.0" /> <!-- [0; 100] 0 is free, 100 is occupied, at what point is a cell considered occpuied for cleaning after interpolation-->
12+
13+
<param name = "/test_map_file" value = "$(arg map_file)"/>
14+
15+
16+
<node name="rviz" pkg="rviz" type="rviz" args="-d $(find TMSTC_Star)/rviz/test_integration.rviz"/>
17+
18+
<node name="coverage_path_server" pkg="TMSTC_Star" type="coverage_path_server" output="screen"/>
19+
<node name="cpp_test_integration" pkg="TMSTC_Star" type="cpp_test_integration" output="screen"/>
20+
</launch>

map/barn_3.pgm

Lines changed: 5 additions & 0 deletions
Large diffs are not rendered by default.

map/barn_3.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
image: barn_3.pgm
2+
resolution: 0.050000
3+
origin: [-10.000000, -10.000000, 0.000000]
4+
negate: 0
5+
occupied_thresh: 0.65
6+
free_thresh: 0.196
7+

map/map.pgm

Lines changed: 5 additions & 0 deletions
Large diffs are not rendered by default.

map/map.yaml

100755100644
Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
1-
# image: map.pgm
2-
# resolution: 0.050000
3-
# origin: [-12.200000, -12.200000, 0.000000]
4-
# negate: 0
5-
# occupied_thresh: 0.65
6-
# free_thresh: 0.196
7-
8-
#image: Real_world/Denver_2_1024.png
9-
image: random_20_10.pgm
1+
image: map.pgm
102
resolution: 0.050000
11-
origin: [0.0, 0.0, 0.000000]
3+
origin: [-10.000000, -10.000000, 0.000000]
124
negate: 0
135
occupied_thresh: 0.65
146
free_thresh: 0.196

0 commit comments

Comments
 (0)