Skip to content

Commit d9090a0

Browse files
committed
(minor) update minor things
1 parent 82b84d6 commit d9090a0

File tree

4 files changed

+28
-24
lines changed

4 files changed

+28
-24
lines changed

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ It's an overall updated version of **R-GPF of ERASOR** [**[Code](https://github.
4343

4444
### Characteristics
4545

46-
* Single hpp file (`include/patchwork/patchwork.hpp`)
47-
48-
* Robust ground consistency
49-
5046
As shown in the demo videos, our method shows the most promising robust performance compared with other state-of-the-art methods, especially, our method focuses on the little perturbation of precision/recall as shown in [this figure](img/seq_00_pr_zoom.pdf).
5147

5248
Please kindly note that the concept of *traversable area* and *ground* is quite different! Please refer to our paper.

launch/offline_kitti.launch

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
<launch>
2+
<!-- Define an argument for data_path with a default value -->
3+
<!-- See the example. It should indicate the sequence directory -->
4+
<arg name="data_path" default="/media/shapelim/UX960NVMe1/kitti_semantic/dataset/sequences/04" />
5+
<param name="/data_path" type="string" value="$(arg data_path)" />
6+
<node name="$(anon offline_kitti)" pkg="patchwork" type="offline_kitti" output="screen">
7+
<rosparam param="/algorithm">"patchwork"</rosparam>
8+
<rosparam param="/save_flag">false</rosparam>
9+
<rosparam param="/use_sor_before_save">false</rosparam>
10+
<rosparam param="/start_frame">0</rosparam>
11+
<rosparam param="/end_frame">10000</rosparam>
212

3-
<node name="$(anon offline_kitti)" pkg="patchwork" type="offline_kitti" output="screen">
4-
<rosparam param="/algorithm">"patchwork"</rosparam>
5-
<rosparam param="/save_flag">false</rosparam>
6-
<rosparam param="/use_sor_before_save">false</rosparam>
7-
<rosparam param="/start_frame">0</rosparam>
8-
<rosparam param="/end_frame">10000</rosparam>
9-
<rosparam param="/data_path">"/media/shapelim/UX960NVMe11/kitti_semantic/dataset/sequences/04"</rosparam>
10-
</node>
11-
<node name="rviz" pkg="rviz" type="rviz" args="-d $(find patchwork)/rviz/patchwork_viz.rviz"/>
13+
</node>
14+
<node name="rviz" pkg="rviz" type="rviz" args="-d $(find patchwork)/rviz/patchwork_viz.rviz"/>
1215

13-
<rosparam command="load" file="$(find patchwork)/config/params.yaml" />
16+
<rosparam command="load" file="$(find patchwork)/config/params.yaml" />
1417
</launch>

nodes/offline_kitti.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,12 @@ int main(int argc, char**argv) {
145145
// - - - - - - - - - - - - - - - - - - - -
146146
// If you want to save precision/recall in a text file, revise this part
147147
// - - - - - - - - - - - - - - - - - - - -
148-
output_filename = "/home/shapelim/patchwork.txt";
148+
const char* home_dir = std::getenv("HOME");
149+
if (home_dir == nullptr) {
150+
std::cerr << "Error: HOME environment variable not set." << std::endl;
151+
return 1;
152+
}
153+
std::string output_filename = std::string(home_dir) + "/patchwork_quantitaive_results.txt";
149154
ofstream ground_output(output_filename, ios::app);
150155
ground_output << n << "," << time_taken << "," << precision << "," << recall << "," << precision_naive << "," << recall_naive;
151156
ground_output << std::endl;

rviz/patchwork_viz.rviz

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Panels:
1111
- /est_ground1/est_ground1
1212
- /est_ground1/est_ground_filtered1
1313
Splitter Ratio: 0.6044568419456482
14-
Tree Height: 467
14+
Tree Height: 444
1515
- Class: rviz/Selection
1616
Name: Selection
1717
- Class: rviz/Tool Properties
@@ -266,7 +266,7 @@ Visualization Manager:
266266
Use Fixed Frame: true
267267
Use rainbow: true
268268
Value: true
269-
Enabled: false
269+
Enabled: true
270270
Name: TFPN
271271
- Class: rviz/Group
272272
Displays:
@@ -326,7 +326,7 @@ Visualization Manager:
326326
Use Fixed Frame: true
327327
Use rainbow: true
328328
Value: true
329-
Enabled: true
329+
Enabled: false
330330
Name: est_ground
331331
Enabled: true
332332
Global Options:
@@ -372,17 +372,17 @@ Visualization Manager:
372372
Invert Z Axis: false
373373
Name: Current View
374374
Near Clip Distance: 0.009999999776482582
375-
Pitch: 1.5697963237762451
375+
Pitch: 1.1047967672348022
376376
Target Frame: <Fixed Frame>
377-
Yaw: 3.141618013381958
377+
Yaw: 2.351613998413086
378378
Saved: ~
379379
Window Geometry:
380380
Displays:
381381
collapsed: false
382-
Height: 759
382+
Height: 736
383383
Hide Left Dock: false
384384
Hide Right Dock: true
385-
QMainWindow State: 000000ff00000000fd0000000400000000000001c10000025efc0200000008fb0000001200530065006c0065006300740069006f006e00000001e10000009b0000005c00fffffffb0000001e0054006f006f006c002000500072006f007000650072007400690065007302000001ed000001df00000185000000a3fb000000120056006900650077007300200054006f006f02000001df000002110000018500000122fb000000200054006f006f006c002000500072006f0070006500720074006900650073003203000002880000011d000002210000017afb000000100044006900730070006c006100790073010000003d0000025e000000c900fffffffb0000002000730065006c0065006300740069006f006e00200062007500660066006500720200000138000000aa0000023a00000294fb00000014005700690064006500530074006500720065006f02000000e6000000d2000003ee0000030bfb0000000c004b0069006e0065006300740200000186000001060000030c00000261000000010000010f00000372fc0200000003fb0000001e0054006f006f006c002000500072006f00700065007200740069006500730100000041000000780000000000000000fb0000000a00560069006500770073000000003d00000372000000a400fffffffb0000001200530065006c0065006300740069006f006e010000025a000000b200000000000000000000000200000490000000a9fc0100000001fb0000000a00560069006500770073030000004e00000080000002e100000197000000030000056d00000039fc0100000002fb0000000800540069006d006501000000000000056d000003bc00fffffffb0000000800540069006d00650100000000000004500000000000000000000003a60000025e00000004000000040000000800000008fc0000000100000002000000010000000a0054006f006f006c00730100000000ffffffff0000000000000000
385+
QMainWindow State: 000000ff00000000fd0000000400000000000001c100000247fc0200000008fb0000001200530065006c0065006300740069006f006e00000001e10000009b0000005c00fffffffb0000001e0054006f006f006c002000500072006f007000650072007400690065007302000001ed000001df00000185000000a3fb000000120056006900650077007300200054006f006f02000001df000002110000018500000122fb000000200054006f006f006c002000500072006f0070006500720074006900650073003203000002880000011d000002210000017afb000000100044006900730070006c006100790073010000003d00000247000000c900fffffffb0000002000730065006c0065006300740069006f006e00200062007500660066006500720200000138000000aa0000023a00000294fb00000014005700690064006500530074006500720065006f02000000e6000000d2000003ee0000030bfb0000000c004b0069006e0065006300740200000186000001060000030c00000261000000010000010f00000372fc0200000003fb0000001e0054006f006f006c002000500072006f00700065007200740069006500730100000041000000780000000000000000fb0000000a00560069006500770073000000003d00000372000000a400fffffffb0000001200530065006c0065006300740069006f006e010000025a000000b200000000000000000000000200000490000000a9fc0100000001fb0000000a00560069006500770073030000004e00000080000002e100000197000000030000056d00000039fc0100000002fb0000000800540069006d006501000000000000056d000003bc00fffffffb0000000800540069006d00650100000000000004500000000000000000000003a60000024700000004000000040000000800000008fc0000000100000002000000010000000a0054006f006f006c00730100000000ffffffff0000000000000000
386386
Selection:
387387
collapsed: false
388388
Time:
@@ -392,5 +392,5 @@ Window Geometry:
392392
Views:
393393
collapsed: true
394394
Width: 1389
395-
X: 531
396-
Y: 120
395+
X: 2069
396+
Y: 492

0 commit comments

Comments
 (0)