Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBenchmark_8cpp_source.html
More file actions
Latest commit
1063 lines (1061 loc) · 197 KB
/
Copy pathBenchmark_8cpp_source.html
File metadata and controls
1063 lines (1061 loc) · 197 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!-- HTML header for doxygen 1.14.0-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<htmlxmlns="http://www.w3.org/1999/xhtml" lang="en-US" class="light-mode">
<head>
<metaname="color-scheme" content="light">
<metahttp-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<metahttp-equiv="X-UA-Compatible" content="IE=11"/>
<metaname="generator" content="Doxygen 1.16.1"/>
<metaname="viewport" content="width=device-width, initial-scale=1"/>
<title>ompl: ompl/tools/benchmark/src/Benchmark.cpp Source File</title>
<linkhref="tabs.css" rel="stylesheet" type="text/css"/>
<scripttype="text/javascript" src="jquery.js"></script>
<scripttype="text/javascript" src="dynsections.js"></script>
<scripttype="text/javascript" src="clipboard.js"></script>
<scripttype="text/javascript" src="cookie.js"></script>
<linkhref="search/search.css" rel="stylesheet" type="text/css"/>
<scripttype="text/javascript" src="search/searchdata.js"></script>
<scripttype="text/javascript" src="search/search.js"></script>
<scripttype="text/javascript">
$(function(){init_search();});
</script>
<linkhref="doxygen.css" rel="stylesheet" type="text/css" />
<linkhref="ompl.css" rel="stylesheet" type="text/css"/>
<linkrel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<linkhref="ompl.css" rel="stylesheet">
</head>
<body>
<divid="top"><!-- do not remove this div, it is closed by doxygen! -->
<navclass="navbar navbar-expand-md fixed-top navbar-dark">
<aclass="navbar-brand" href="./index.html">OMPL</a>
<buttonclass="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar">
<spanclass="navbar-toggler-icon"></span>
</button>
<divclass="collapse navbar-collapse" id="navbar">
<ulclass="navbar-nav mr-auto">
<liclass="nav-item"><aclass="nav-link" href="download.html">Download</a></li>
<liclass="nav-item dropdown">
<aclass="nav-link dropdown-toggle" href="#" id="docDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Documentation</a>
<divclass="dropdown-menu" aria-labelledby="docDropdown">
<aclass="dropdown-item" href="https://ompl.kavrakilab.org/OMPL_Primer.pdf">Primer</a>
<aclass="dropdown-item" href="installation.html">Installation</a>
<aclass="dropdown-item" href="tutorials.html">Tutorials</a>
<aclass="dropdown-item" href="demos.html">Demos</a>
<aclass="dropdown-item" href="python.html">Python Bindings</a>
<aclass="dropdown-item" href="planners.html">Available Planners</a>
<aclass="dropdown-item" href="plannerTerminationConditions.html">Planner Termination Conditions</a>
<aclass="dropdown-item" href="benchmark.html">Benchmarking Planners</a>
<aclass="dropdown-item" href="spaces.html">Available State Spaces</a>
<aclass="dropdown-item" href="optimalPlanning.html">Optimal Planning</a>
<aclass="dropdown-item" href="constrainedPlanning.html">Constrained Planning</a>
<aclass="dropdown-item" href="multiLevelPlanning.html">Multilevel Planning</a>
<aclass="dropdown-item" href="FAQ.html">FAQ</a>
<divclass="dropdown-divider"></div>
<divclass="dropdown-header">External links</div>
<aclass="dropdown-item" href="http://moveit.ros.org">MoveIt</a>
<aclass="dropdown-item" href="http://plannerarena.org">Planner Arena</a>
<aclass="dropdown-item" href="https://www.youtube.com/watch?v=jWHYR5OYqjQ">ICRA 2026 Tutorial</a>
</div>
</li>
<liclass="nav-item"><aclass="nav-link" href="gallery.html">Gallery</a></li>
<liclass="nav-item"><aclass="nav-link" href="integration.html">OMPL Integrations</a></li>
<liclass="nav-item dropdown">
<aclass="nav-link dropdown-toggle" href="#" id="codeDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Code</a>
<divclass="dropdown-menu" aria-labelledby="codeDropdown">
<aclass="dropdown-item" href="api_overview.html">API Overview</a>
<aclass="dropdown-item" href="annotated.html">Classes</a>
<aclass="dropdown-item" href="files.html">Files</a>
<aclass="dropdown-item" href="styleGuide.html">Style Guide</a>
<aclass="dropdown-item" href="https://github.com/ompl/ompl">OMPL on GitHub</a>
</div>
</li>
<liclass="nav-item"><aclass="nav-link" href="https://github.com/ompl/ompl/issues">Issues</a></li>
<liclass="nav-item dropdown">
<aclass="nav-link dropdown-toggle" href="#" id="communityDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Community</a>
<divclass="dropdown-menu" aria-labelledby="communityDropdown">
<aclass="dropdown-item" href="support.html">Get Support</a>
<aclass="dropdown-item" href="developers.html">Developers/Contributors</a>
<aclass="dropdown-item" href="contrib.html">Submit a Contribution</a>
</div>
</li>
<liclass="nav-item dropdown">
<aclass="nav-link dropdown-toggle" href="#" id="aboutDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">About</a>
<divclass="dropdown-menu" aria-labelledby="aboutDropdown">
<aclass="dropdown-item" href="license.html">License</a>
<aclass="dropdown-item" href="citations.html">Citations</a>
<aclass="dropdown-item" href="acknowledgements.html">Acknowledgments</a>
</div>
</li>
<liclass="nav-item"><aclass="nav-link" href="https://ompl.kavrakilab.org/blog.html">Blog</a></li>
</ul>
<divid="MSearchBox" class="MSearchBoxInactive">
<spanclass="left">
<spanid="MSearchSelect" class="search-icon" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()"><spanclass="search-icon-dropdown"></span></span>
<inputtype="text" id="MSearchField" value="" placeholder="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><spanclass="right">
<aid="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><divid="MSearchCloseImg" class="close-icon"></div></a>
</span>
</div>
</div>
</nav>
<divclass="container" role="main">
<div>
<!-- Generated by Doxygen 1.16.1 -->
<scripttype="text/javascript">
varsearchBox=newSearchBox("searchBox","search/",'.html');
</script>
<scripttype="text/javascript">
$(function(){codefold.init();});
</script>
<!-- window showing the filter options -->
<divid="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<divid="MSearchResultsWindow">
<divid="MSearchResults">
<divclass="SRPage">
<divid="SRIndex">
<divid="SRResults"></div>
<divclass="SRStatus" id="Loading">Loading...</div>
<divclass="SRStatus" id="Searching">Searching...</div>
<divclass="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<divid="nav-path" class="navpath">
<ul>
<liclass="navelem"><b>ompl</b></li><liclass="navelem"><b>tools</b></li><liclass="navelem"><b>benchmark</b></li><liclass="navelem"><b>src</b></li></ul>
</div>
</div><!-- top -->
<divid="doc-content">
<divclass="header">
<divclass="headertitle"><divclass="title">Benchmark.cpp</div></div>
</div><!--header-->
<divclass="contents">
<divclass="fragment"><divclass="line"><aid="l00001" name="l00001"></a><spanclass="lineno"> 1</span><spanclass="comment">/*********************************************************************</span></div>
<divclass="line"><aid="l00002" name="l00002"></a><spanclass="lineno"> 2</span><spanclass="comment"> * Software License Agreement (BSD License)</span></div>
<divclass="line"><aid="l00003" name="l00003"></a><spanclass="lineno"> 3</span><spanclass="comment"> *</span></div>
<divclass="line"><aid="l00004" name="l00004"></a><spanclass="lineno"> 4</span><spanclass="comment"> * Copyright (c) 2010, Rice University</span></div>
<divclass="line"><aid="l00005" name="l00005"></a><spanclass="lineno"> 5</span><spanclass="comment"> * All rights reserved.</span></div>
<divclass="line"><aid="l00006" name="l00006"></a><spanclass="lineno"> 6</span><spanclass="comment"> *</span></div>
<divclass="line"><aid="l00007" name="l00007"></a><spanclass="lineno"> 7</span><spanclass="comment"> * Redistribution and use in source and binary forms, with or without</span></div>
<divclass="line"><aid="l00008" name="l00008"></a><spanclass="lineno"> 8</span><spanclass="comment"> * modification, are permitted provided that the following conditions</span></div>
<divclass="line"><aid="l00009" name="l00009"></a><spanclass="lineno"> 9</span><spanclass="comment"> * are met:</span></div>
<divclass="line"><aid="l00010" name="l00010"></a><spanclass="lineno"> 10</span><spanclass="comment"> *</span></div>
<divclass="line"><aid="l00011" name="l00011"></a><spanclass="lineno"> 11</span><spanclass="comment"> * * Redistributions of source code must retain the above copyright</span></div>
<divclass="line"><aid="l00012" name="l00012"></a><spanclass="lineno"> 12</span><spanclass="comment"> * notice, this list of conditions and the following disclaimer.</span></div>
<divclass="line"><aid="l00013" name="l00013"></a><spanclass="lineno"> 13</span><spanclass="comment"> * * Redistributions in binary form must reproduce the above</span></div>
<divclass="line"><aid="l00014" name="l00014"></a><spanclass="lineno"> 14</span><spanclass="comment"> * copyright notice, this list of conditions and the following</span></div>
<divclass="line"><aid="l00015" name="l00015"></a><spanclass="lineno"> 15</span><spanclass="comment"> * disclaimer in the documentation and/or other materials provided</span></div>
<divclass="line"><aid="l00016" name="l00016"></a><spanclass="lineno"> 16</span><spanclass="comment"> * with the distribution.</span></div>
<divclass="line"><aid="l00017" name="l00017"></a><spanclass="lineno"> 17</span><spanclass="comment"> * * Neither the name of the Rice University nor the names of its</span></div>
<divclass="line"><aid="l00018" name="l00018"></a><spanclass="lineno"> 18</span><spanclass="comment"> * contributors may be used to endorse or promote products derived</span></div>
<divclass="line"><aid="l00019" name="l00019"></a><spanclass="lineno"> 19</span><spanclass="comment"> * from this software without specific prior written permission.</span></div>
<divclass="line"><aid="l00020" name="l00020"></a><spanclass="lineno"> 20</span><spanclass="comment"> *</span></div>
<divclass="line"><aid="l00021" name="l00021"></a><spanclass="lineno"> 21</span><spanclass="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS</span></div>
<divclass="line"><aid="l00022" name="l00022"></a><spanclass="lineno"> 22</span><spanclass="comment"> * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT</span></div>
<divclass="line"><aid="l00023" name="l00023"></a><spanclass="lineno"> 23</span><spanclass="comment"> * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS</span></div>
<divclass="line"><aid="l00024" name="l00024"></a><spanclass="lineno"> 24</span><spanclass="comment"> * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE</span></div>
<divclass="line"><aid="l00025" name="l00025"></a><spanclass="lineno"> 25</span><spanclass="comment"> * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,</span></div>
<divclass="line"><aid="l00026" name="l00026"></a><spanclass="lineno"> 26</span><spanclass="comment"> * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,</span></div>
<divclass="line"><aid="l00027" name="l00027"></a><spanclass="lineno"> 27</span><spanclass="comment"> * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;</span></div>
<divclass="line"><aid="l00028" name="l00028"></a><spanclass="lineno"> 28</span><spanclass="comment"> * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER</span></div>
<divclass="line"><aid="l00029" name="l00029"></a><spanclass="lineno"> 29</span><spanclass="comment"> * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT</span></div>
<divclass="line"><aid="l00030" name="l00030"></a><spanclass="lineno"> 30</span><spanclass="comment"> * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN</span></div>
<divclass="line"><aid="l00031" name="l00031"></a><spanclass="lineno"> 31</span><spanclass="comment"> * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE</span></div>
<divclass="line"><aid="l00032" name="l00032"></a><spanclass="lineno"> 32</span><spanclass="comment"> * POSSIBILITY OF SUCH DAMAGE.</span></div>
<divclass="line"><aid="l00033" name="l00033"></a><spanclass="lineno"> 33</span><spanclass="comment"> *********************************************************************/</span></div>
<divclass="line"><aid="l00034" name="l00034"></a><spanclass="lineno"> 34</span></div>
<divclass="line"><aid="l00035" name="l00035"></a><spanclass="lineno"> 35</span><spanclass="comment">/* Author: Ioan Sucan, Luis G. Torres */</span></div>
<divclass="line"><aid="l00036" name="l00036"></a><spanclass="lineno"> 36</span></div>
<divclass="line"><aid="l00037" name="l00037"></a><spanclass="lineno"> 37</span><spanclass="preprocessor">#include "ompl/tools/benchmark/Benchmark.h"</span></div>
<divclass="line"><aid="l00038" name="l00038"></a><spanclass="lineno"> 38</span><spanclass="preprocessor">#include "ompl/tools/benchmark/MachineSpecs.h"</span></div>
<divclass="line"><aid="l00039" name="l00039"></a><spanclass="lineno"> 39</span><spanclass="preprocessor">#include "ompl/util/Time.h"</span></div>
<divclass="line"><aid="l00040" name="l00040"></a><spanclass="lineno"> 40</span><spanclass="preprocessor">#include "ompl/config.h"</span></div>
<divclass="line"><aid="l00041" name="l00041"></a><spanclass="lineno"> 41</span><spanclass="preprocessor">#include "ompl/util/String.h"</span></div>
<divclass="line"><aid="l00042" name="l00042"></a><spanclass="lineno"> 42</span><spanclass="preprocessor">#include <boost/scoped_ptr.hpp></span></div>
<divclass="line"><aid="l00043" name="l00043"></a><spanclass="lineno"> 43</span><spanclass="preprocessor">#include <thread></span></div>
<divclass="line"><aid="l00044" name="l00044"></a><spanclass="lineno"> 44</span><spanclass="preprocessor">#include <mutex></span></div>
<divclass="line"><aid="l00045" name="l00045"></a><spanclass="lineno"> 45</span><spanclass="preprocessor">#include <condition_variable></span></div>
<divclass="line"><aid="l00046" name="l00046"></a><spanclass="lineno"> 46</span><spanclass="preprocessor">#include <fstream></span></div>
<divclass="line"><aid="l00047" name="l00047"></a><spanclass="lineno"> 47</span><spanclass="preprocessor">#include <sstream></span></div>
<divclass="line"><aid="l00048" name="l00048"></a><spanclass="lineno"> 48</span></div>
<divclass="line"><aid="l00050" name="l00050"></a><spanclass="lineno"> 50</span><spanclass="keyword">namespace </span><aclass="code hl_namespace" href="namespaceompl.html">ompl</a></div>
<divclass="line"><aid="l00051" name="l00051"></a><spanclass="lineno"> 51</span>{</div>
<divclass="line"><aid="l00052" name="l00052"></a><spanclass="lineno"> 52</span><spanclass="keyword">namespace </span><aclass="code hl_namespace" href="namespaceompl_1_1tools.html">tools</a></div>
<divclass="line"><aid="l00053" name="l00053"></a><spanclass="lineno"> 53</span> {</div>
<divclass="line"><aid="l00056" name="l00056"></a><spanclass="lineno"> 56</span><spanclass="keyword">static</span> std::string getResultsFilename(<spanclass="keyword">const</span><aclass="code hl_struct" href="structompl_1_1tools_1_1Benchmark_1_1CompleteExperiment.html">Benchmark::CompleteExperiment</a> &exp)</div>
<divclass="line"><aid="l00057" name="l00057"></a><spanclass="lineno"> 57</span> {</div>
<divclass="line"><aid="l00058" name="l00058"></a><spanclass="lineno"> 58</span><spanclass="keywordflow">return</span><spanclass="stringliteral">"ompl_"</span> + exp.host + <spanclass="stringliteral">"_"</span> + <aclass="code hl_function" href="namespaceompl_1_1time.html#ae8d794354a37128403aba90a187fe532">time::as_string</a>(exp.startTime) + <spanclass="stringliteral">".log"</span>;</div>
<divclass="line"><aid="l00059" name="l00059"></a><spanclass="lineno"> 59</span> }</div>
<divclass="line"><aid="l00060" name="l00060"></a><spanclass="lineno"> 60</span></div>
<divclass="line"><aid="l00063" name="l00063"></a><spanclass="lineno"> 63</span><spanclass="keyword">static</span> std::string getConsoleFilename(<spanclass="keyword">const</span><aclass="code hl_struct" href="structompl_1_1tools_1_1Benchmark_1_1CompleteExperiment.html">Benchmark::CompleteExperiment</a> &exp)</div>
<divclass="line"><aid="l00064" name="l00064"></a><spanclass="lineno"> 64</span> {</div>
<divclass="line"><aid="l00065" name="l00065"></a><spanclass="lineno"> 65</span><spanclass="keywordflow">return</span><spanclass="stringliteral">"ompl_"</span> + exp.host + <spanclass="stringliteral">"_"</span> + <aclass="code hl_function" href="namespaceompl_1_1time.html#ae8d794354a37128403aba90a187fe532">time::as_string</a>(exp.startTime) + <spanclass="stringliteral">".console"</span>;</div>
<divclass="line"><aid="l00066" name="l00066"></a><spanclass="lineno"> 66</span> }</div>
<divclass="line"><aid="l00067" name="l00067"></a><spanclass="lineno"> 67</span></div>
<divclass="line"><aid="l00068" name="l00068"></a><spanclass="lineno"> 68</span><spanclass="keyword">static</span><spanclass="keywordtype">bool</span> terminationCondition(<spanclass="keyword">const</span><aclass="code hl_typedef" href="namespaceompl_1_1machine.html#af898d386f21d6c8311821bb4f87b5132">machine::MemUsage_t</a> maxMem, <spanclass="keyword">const</span><aclass="code hl_typedef" href="namespaceompl_1_1time.html#a217fd988fc9b3192af36c37613d51a39">time::point</a> &endTime)</div>
<divclass="line"><aid="l00069" name="l00069"></a><spanclass="lineno"> 69</span> {</div>
<divclass="line"><aid="l00070" name="l00070"></a><spanclass="lineno"> 70</span><spanclass="keywordflow">if</span> (<aclass="code hl_function" href="namespaceompl_1_1time.html#a5da903c529cfbbce79900b7c1cbc6cc3">time::now</a>() < endTime && <aclass="code hl_function" href="namespaceompl_1_1machine.html#a263d0e9d43cd9e10edb468b97f46a198">machine::getProcessMemoryUsage</a>() < maxMem)</div>
<divclass="line"><aid="l00071" name="l00071"></a><spanclass="lineno"> 71</span><spanclass="keywordflow">return</span><spanclass="keyword">false</span>;</div>
<divclass="line"><aid="l00072" name="l00072"></a><spanclass="lineno"> 72</span><spanclass="keywordflow">return</span><spanclass="keyword">true</span>;</div>
<divclass="line"><aid="l00073" name="l00073"></a><spanclass="lineno"> 73</span> }</div>
<divclass="line"><aid="l00074" name="l00074"></a><spanclass="lineno"> 74</span></div>
<divclass="line"><aid="l00075" name="l00075"></a><spanclass="lineno"> 75</span><spanclass="keyword">class </span>RunPlanner</div>
<divclass="line"><aid="l00076" name="l00076"></a><spanclass="lineno"> 76</span> {</div>
<divclass="line"><aid="l00077" name="l00077"></a><spanclass="lineno"> 77</span><spanclass="keyword">public</span>:</div>
<divclass="line"><aid="l00078" name="l00078"></a><spanclass="lineno"> 78</span> RunPlanner(<spanclass="keyword">const</span> Benchmark *benchmark) : benchmark_(benchmark), timeUsed_(0.0), memUsed_(0)</div>
<divclass="line"><aid="l00079" name="l00079"></a><spanclass="lineno"> 79</span> {</div>
<divclass="line"><aid="l00080" name="l00080"></a><spanclass="lineno"> 80</span> }</div>
<divclass="line"><aid="l00081" name="l00081"></a><spanclass="lineno"> 81</span></div>
<divclass="line"><aid="l00082" name="l00082"></a><spanclass="lineno"> 82</span><spanclass="keywordtype">void</span> run(<spanclass="keyword">const</span> base::PlannerPtr &planner, <spanclass="keyword">const</span> machine::MemUsage_t memStart,</div>
<divclass="line"><aid="l00083" name="l00083"></a><spanclass="lineno"> 83</span><spanclass="keyword">const</span> machine::MemUsage_t maxMem, <spanclass="keyword">const</span><spanclass="keywordtype">double</span> maxTime, <spanclass="keyword">const</span><spanclass="keywordtype">double</span> timeBetweenUpdates)</div>
<divclass="line"><aid="l00084" name="l00084"></a><spanclass="lineno"> 84</span> {</div>
<divclass="line"><aid="l00085" name="l00085"></a><spanclass="lineno"> 85</span> runThread(planner, memStart + maxMem, time::seconds(maxTime), time::seconds(timeBetweenUpdates));</div>
<divclass="line"><aid="l00086" name="l00086"></a><spanclass="lineno"> 86</span> }</div>
<divclass="line"><aid="l00087" name="l00087"></a><spanclass="lineno"> 87</span></div>
<divclass="line"><aid="l00088" name="l00088"></a><spanclass="lineno"> 88</span><spanclass="keywordtype">double</span> getTimeUsed()<spanclass="keyword"> const</span></div>
<divclass="line"><aid="l00089" name="l00089"></a><spanclass="lineno"> 89</span><spanclass="keyword"></span>{</div>
<divclass="line"><aid="l00090" name="l00090"></a><spanclass="lineno"> 90</span><spanclass="keywordflow">return</span> timeUsed_;</div>
<divclass="line"><aid="l00091" name="l00091"></a><spanclass="lineno"> 91</span> }</div>
<divclass="line"><aid="l00092" name="l00092"></a><spanclass="lineno"> 92</span></div>
<divclass="line"><aid="l00093" name="l00093"></a><spanclass="lineno"> 93</span> machine::MemUsage_t getMemUsed()<spanclass="keyword"> const</span></div>
<divclass="line"><aid="l00094" name="l00094"></a><spanclass="lineno"> 94</span><spanclass="keyword"></span>{</div>
<divclass="line"><aid="l00095" name="l00095"></a><spanclass="lineno"> 95</span><spanclass="keywordflow">return</span> memUsed_;</div>
<divclass="line"><aid="l00096" name="l00096"></a><spanclass="lineno"> 96</span> }</div>
<divclass="line"><aid="l00097" name="l00097"></a><spanclass="lineno"> 97</span></div>
<divclass="line"><aid="l00098" name="l00098"></a><spanclass="lineno"> 98</span> base::PlannerStatus getStatus()<spanclass="keyword"> const</span></div>
<divclass="line"><aid="l00099" name="l00099"></a><spanclass="lineno"> 99</span><spanclass="keyword"></span>{</div>
<divclass="line"><aid="l00100" name="l00100"></a><spanclass="lineno"> 100</span><spanclass="keywordflow">return</span> status_;</div>
<divclass="line"><aid="l00101" name="l00101"></a><spanclass="lineno"> 101</span> }</div>
<divclass="line"><aid="l00102" name="l00102"></a><spanclass="lineno"> 102</span></div>
<divclass="line"><aid="l00103" name="l00103"></a><spanclass="lineno"> 103</span><spanclass="keyword">const</span> Benchmark::RunProgressData &getRunProgressData()<spanclass="keyword"> const</span></div>
<divclass="line"><aid="l00104" name="l00104"></a><spanclass="lineno"> 104</span><spanclass="keyword"></span>{</div>
<divclass="line"><aid="l00105" name="l00105"></a><spanclass="lineno"> 105</span><spanclass="keywordflow">return</span> runProgressData_;</div>
<divclass="line"><aid="l00106" name="l00106"></a><spanclass="lineno"> 106</span> }</div>
<divclass="line"><aid="l00107" name="l00107"></a><spanclass="lineno"> 107</span></div>
<divclass="line"><aid="l00108" name="l00108"></a><spanclass="lineno"> 108</span><spanclass="keyword">private</span>:</div>
<divclass="line"><aid="l00109" name="l00109"></a><spanclass="lineno"> 109</span><spanclass="keywordtype">void</span> runThread(<spanclass="keyword">const</span> base::PlannerPtr &planner, <spanclass="keyword">const</span> machine::MemUsage_t maxMem,</div>
<divclass="line"><aid="l00110" name="l00110"></a><spanclass="lineno"> 110</span><spanclass="keyword">const</span> time::duration &maxDuration, <spanclass="keyword">const</span> time::duration &timeBetweenUpdates)</div>
<divclass="line"><aid="l00111" name="l00111"></a><spanclass="lineno"> 111</span> {</div>
<divclass="line"><aid="l00112" name="l00112"></a><spanclass="lineno"> 112</span> time::point timeStart = time::now();</div>
<divclass="line"><aid="l00113" name="l00113"></a><spanclass="lineno"> 113</span></div>
<divclass="line"><aid="l00114" name="l00114"></a><spanclass="lineno"> 114</span><spanclass="keywordflow">try</span></div>
<divclass="line"><aid="l00115" name="l00115"></a><spanclass="lineno"> 115</span> {</div>
<divclass="line"><aid="l00116" name="l00116"></a><spanclass="lineno"> 116</span><spanclass="keyword">const</span> time::point endtime = time::now() + maxDuration;</div>
<divclass="line"><aid="l00117" name="l00117"></a><spanclass="lineno"> 117</span><aclass="code hl_typedef" href="namespaceompl_1_1base.html#acc9ed849c703c408f640d996275c3079">base::PlannerTerminationConditionFn</a> ptc([maxMem, endtime]</div>
<divclass="line"><aid="l00118" name="l00118"></a><spanclass="lineno"> 118</span> { <spanclass="keywordflow">return</span> terminationCondition(maxMem, endtime); });</div>
<divclass="line"><aid="l00119" name="l00119"></a><spanclass="lineno"> 119</span> solved_ = <spanclass="keyword">false</span>;</div>
<divclass="line"><aid="l00120" name="l00120"></a><spanclass="lineno"> 120</span><spanclass="comment">// Only launch the planner progress property</span></div>
<divclass="line"><aid="l00121" name="l00121"></a><spanclass="lineno"> 121</span><spanclass="comment">// collector if there is any data for it to report</span></div>
<divclass="line"><aid="l00122" name="l00122"></a><spanclass="lineno"> 122</span><spanclass="comment">//</span></div>
<divclass="line"><aid="l00123" name="l00123"></a><spanclass="lineno"> 123</span><spanclass="comment">// \todo issue here is that at least one sample</span></div>
<divclass="line"><aid="l00124" name="l00124"></a><spanclass="lineno"> 124</span><spanclass="comment">// always gets taken before planner even starts;</span></div>
<divclass="line"><aid="l00125" name="l00125"></a><spanclass="lineno"> 125</span><spanclass="comment">// might be worth adding a short wait time before</span></div>
<divclass="line"><aid="l00126" name="l00126"></a><spanclass="lineno"> 126</span><spanclass="comment">// collector begins sampling</span></div>
<divclass="line"><aid="l00127" name="l00127"></a><spanclass="lineno"> 127</span> boost::scoped_ptr<std::thread> t;</div>
<divclass="line"><aid="l00128" name="l00128"></a><spanclass="lineno"> 128</span><spanclass="keywordflow">if</span> (planner->getPlannerProgressProperties().size() > 0)</div>
<divclass="line"><aid="l00129" name="l00129"></a><spanclass="lineno"> 129</span> t.reset(<spanclass="keyword">new</span> std::thread(</div>
<divclass="line"><aid="l00130" name="l00130"></a><spanclass="lineno"> 130</span> [<spanclass="keyword">this</span>, &planner, timeBetweenUpdates]</div>
<divclass="line"><aid="l00131" name="l00131"></a><spanclass="lineno"> 131</span> {</div>
<divclass="line"><aid="l00132" name="l00132"></a><spanclass="lineno"> 132</span> collectProgressProperties(planner->getPlannerProgressProperties(), timeBetweenUpdates);</div>
<divclass="line"><aid="l00133" name="l00133"></a><spanclass="lineno"> 133</span> }));</div>
<divclass="line"><aid="l00134" name="l00134"></a><spanclass="lineno"> 134</span> status_ = planner->solve(ptc, 0.1);</div>
<divclass="line"><aid="l00135" name="l00135"></a><spanclass="lineno"> 135</span> solvedFlag_.lock();</div>
<divclass="line"><aid="l00136" name="l00136"></a><spanclass="lineno"> 136</span> solved_ = <spanclass="keyword">true</span>;</div>
<divclass="line"><aid="l00137" name="l00137"></a><spanclass="lineno"> 137</span> solvedCondition_.notify_all();</div>
<divclass="line"><aid="l00138" name="l00138"></a><spanclass="lineno"> 138</span> solvedFlag_.unlock();</div>
<divclass="line"><aid="l00139" name="l00139"></a><spanclass="lineno"> 139</span><spanclass="keywordflow">if</span> (t)</div>
<divclass="line"><aid="l00140" name="l00140"></a><spanclass="lineno"> 140</span> t->join(); <spanclass="comment">// maybe look into interrupting even if planner throws an exception</span></div>
<divclass="line"><aid="l00141" name="l00141"></a><spanclass="lineno"> 141</span> }</div>
<divclass="line"><aid="l00142" name="l00142"></a><spanclass="lineno"> 142</span><spanclass="keywordflow">catch</span> (std::runtime_error &e)</div>
<divclass="line"><aid="l00143" name="l00143"></a><spanclass="lineno"> 143</span> {</div>
<divclass="line"><aid="l00144" name="l00144"></a><spanclass="lineno"> 144</span> std::stringstream es;</div>
<divclass="line"><aid="l00145" name="l00145"></a><spanclass="lineno"> 145</span> es << <spanclass="stringliteral">"There was an error executing planner "</span> << benchmark_->getStatus().activePlanner</div>
<divclass="line"><aid="l00146" name="l00146"></a><spanclass="lineno"> 146</span> << <spanclass="stringliteral">", run = "</span> << benchmark_->getStatus().activeRun << std::endl;</div>
<divclass="line"><aid="l00147" name="l00147"></a><spanclass="lineno"> 147</span> es << <spanclass="stringliteral">"*** "</span> << e.what() << std::endl;</div>
<divclass="line"><aid="l00148" name="l00148"></a><spanclass="lineno"> 148</span> std::cerr << es.str();</div>
<divclass="line"><aid="l00149" name="l00149"></a><spanclass="lineno"> 149</span><aclass="code hl_define" href="group__logging.html#ga05ad3ae88188e7f248748785afd2b882">OMPL_ERROR</a>(es.str().c_str());</div>
<divclass="line"><aid="l00150" name="l00150"></a><spanclass="lineno"> 150</span> }</div>
<divclass="line"><aid="l00151" name="l00151"></a><spanclass="lineno"> 151</span></div>
<divclass="line"><aid="l00152" name="l00152"></a><spanclass="lineno"> 152</span> timeUsed_ = time::seconds(time::now() - timeStart);</div>
<divclass="line"><aid="l00153" name="l00153"></a><spanclass="lineno"> 153</span> memUsed_ = machine::getProcessMemoryUsage();</div>
<divclass="line"><aid="l00154" name="l00154"></a><spanclass="lineno"> 154</span> }</div>
<divclass="line"><aid="l00155" name="l00155"></a><spanclass="lineno"> 155</span></div>
<divclass="line"><aid="l00156" name="l00156"></a><spanclass="lineno"> 156</span><spanclass="keywordtype">void</span> collectProgressProperties(<spanclass="keyword">const</span><aclass="code hl_typedef" href="classompl_1_1base_1_1Planner.html#adc4df80108aec5db29373302e4b8d723">base::Planner::PlannerProgressProperties</a> &properties,</div>
<divclass="line"><aid="l00157" name="l00157"></a><spanclass="lineno"> 157</span><spanclass="keyword">const</span> time::duration &timePerUpdate)</div>
<divclass="line"><aid="l00158" name="l00158"></a><spanclass="lineno"> 158</span> {</div>
<divclass="line"><aid="l00159" name="l00159"></a><spanclass="lineno"> 159</span> time::point timeStart = time::now();</div>
<divclass="line"><aid="l00160" name="l00160"></a><spanclass="lineno"> 160</span></div>
<divclass="line"><aid="l00161" name="l00161"></a><spanclass="lineno"> 161</span> std::unique_lock<std::mutex> ulock(solvedFlag_);</div>
<divclass="line"><aid="l00162" name="l00162"></a><spanclass="lineno"> 162</span><spanclass="keywordflow">while</span> (!solved_)</div>
<divclass="line"><aid="l00163" name="l00163"></a><spanclass="lineno"> 163</span> {</div>
<divclass="line"><aid="l00164" name="l00164"></a><spanclass="lineno"> 164</span><spanclass="keywordflow">if</span> (solvedCondition_.wait_for(ulock, timePerUpdate) == std::cv_status::no_timeout)</div>
<divclass="line"><aid="l00165" name="l00165"></a><spanclass="lineno"> 165</span><spanclass="keywordflow">return</span>;</div>
<divclass="line"><aid="l00166" name="l00166"></a><spanclass="lineno"> 166</span><spanclass="keywordflow">else</span></div>
<divclass="line"><aid="l00167" name="l00167"></a><spanclass="lineno"> 167</span> {</div>
<divclass="line"><aid="l00168" name="l00168"></a><spanclass="lineno"> 168</span><spanclass="keywordtype">double</span> timeInSeconds = time::seconds(time::now() - timeStart);</div>
<divclass="line"><aid="l00169" name="l00169"></a><spanclass="lineno"> 169</span> std::string timeStamp = <aclass="code hl_function" href="namespaceompl.html#a6e6c38ce80fbb8f10d826bb19b64735a">ompl::toString</a>(timeInSeconds);</div>
<divclass="line"><aid="l00170" name="l00170"></a><spanclass="lineno"> 170</span> std::map<std::string, std::string> data;</div>
<divclass="line"><aid="l00171" name="l00171"></a><spanclass="lineno"> 171</span> data[<spanclass="stringliteral">"time REAL"</span>] = timeStamp;</div>
<divclass="line"><aid="l00172" name="l00172"></a><spanclass="lineno"> 172</span><spanclass="keywordflow">for</span> (<spanclass="keyword">const</span><spanclass="keyword">auto</span> &property : properties)</div>
<divclass="line"><aid="l00173" name="l00173"></a><spanclass="lineno"> 173</span> {</div>
<divclass="line"><aid="l00174" name="l00174"></a><spanclass="lineno"> 174</span> data[<spanclass="keyword">property</span>.first] = <spanclass="keyword">property</span>.second();</div>
<divclass="line"><aid="l00175" name="l00175"></a><spanclass="lineno"> 175</span> }</div>
<divclass="line"><aid="l00176" name="l00176"></a><spanclass="lineno"> 176</span> runProgressData_.push_back(data);</div>
<divclass="line"><aid="l00177" name="l00177"></a><spanclass="lineno"> 177</span> }</div>
<divclass="line"><aid="l00178" name="l00178"></a><spanclass="lineno"> 178</span> }</div>
<divclass="line"><aid="l00179" name="l00179"></a><spanclass="lineno"> 179</span> }</div>
<divclass="line"><aid="l00180" name="l00180"></a><spanclass="lineno"> 180</span></div>
<divclass="line"><aid="l00181" name="l00181"></a><spanclass="lineno"> 181</span><spanclass="keyword">const</span> Benchmark *benchmark_;</div>
<divclass="line"><aid="l00182" name="l00182"></a><spanclass="lineno"> 182</span><spanclass="keywordtype">double</span> timeUsed_;</div>
<divclass="line"><aid="l00183" name="l00183"></a><spanclass="lineno"> 183</span> machine::MemUsage_t memUsed_;</div>
<divclass="line"><aid="l00184" name="l00184"></a><spanclass="lineno"> 184</span> base::PlannerStatus status_;</div>
<divclass="line"><aid="l00185" name="l00185"></a><spanclass="lineno"> 185</span> Benchmark::RunProgressData runProgressData_;</div>
<divclass="line"><aid="l00186" name="l00186"></a><spanclass="lineno"> 186</span></div>
<divclass="line"><aid="l00187" name="l00187"></a><spanclass="lineno"> 187</span><spanclass="comment">// variables needed for progress property collection</span></div>
<divclass="line"><aid="l00188" name="l00188"></a><spanclass="lineno"> 188</span><spanclass="keywordtype">bool</span> solved_;</div>
<divclass="line"><aid="l00189" name="l00189"></a><spanclass="lineno"> 189</span> std::mutex solvedFlag_;</div>
<divclass="line"><aid="l00190" name="l00190"></a><spanclass="lineno"> 190</span> std::condition_variable solvedCondition_;</div>
<divclass="line"><aid="l00191" name="l00191"></a><spanclass="lineno"> 191</span> };</div>
<divclass="line"><aid="l00192" name="l00192"></a><spanclass="lineno"> 192</span> } <spanclass="comment">// namespace tools</span></div>
<divclass="line"><aid="l00193" name="l00193"></a><spanclass="lineno"> 193</span>} <spanclass="comment">// namespace ompl</span></div>
<divclass="line"><aid="l00195" name="l00195"></a><spanclass="lineno"> 195</span></div>
<divclass="foldopen" id="foldopen00196" data-start="{" data-end="}">
<divclass="line"><aid="l00196" name="l00196"></a><spanclass="lineno"><aclass="line" href="classompl_1_1tools_1_1Benchmark.html#ade874bfcc461409dbe925aa6ee0bcbd3"> 196</a></span><aclass="code hl_function" href="classompl_1_1tools_1_1Benchmark.html#ade874bfcc461409dbe925aa6ee0bcbd3">ompl::tools::Benchmark::Benchmark</a>(<aclass="code hl_class" href="classompl_1_1geometric_1_1SimpleSetup.html">geometric::SimpleSetup</a> &setup, <spanclass="keyword">const</span> std::string &name)</div>
<divclass="line"><aid="l00197" name="l00197"></a><spanclass="lineno"> 197</span> : <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a>(&setup), <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a74f68df4ca4750779c5a2d5ef202c27e">csetup_</a>(nullptr)</div>
<divclass="line"><aid="l00198" name="l00198"></a><spanclass="lineno"> 198</span>{</div>
<divclass="line"><aid="l00199" name="l00199"></a><spanclass="lineno"> 199</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.name = name;</div>
<divclass="line"><aid="l00200" name="l00200"></a><spanclass="lineno"> 200</span>}</div>
</div>
<divclass="line"><aid="l00201" name="l00201"></a><spanclass="lineno"> 201</span></div>
<divclass="foldopen" id="foldopen00202" data-start="{" data-end="}">
<divclass="line"><aid="l00202" name="l00202"></a><spanclass="lineno"><aclass="line" href="classompl_1_1tools_1_1Benchmark.html#a85887f3c709f330558df3f9c2217d177"> 202</a></span><aclass="code hl_function" href="classompl_1_1tools_1_1Benchmark.html#ade874bfcc461409dbe925aa6ee0bcbd3">ompl::tools::Benchmark::Benchmark</a>(<aclass="code hl_class" href="classompl_1_1control_1_1SimpleSetup.html">control::SimpleSetup</a> &setup, <spanclass="keyword">const</span> std::string &name)</div>
<divclass="line"><aid="l00203" name="l00203"></a><spanclass="lineno"> 203</span> : <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a>(nullptr), <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a74f68df4ca4750779c5a2d5ef202c27e">csetup_</a>(&setup)</div>
<divclass="line"><aid="l00204" name="l00204"></a><spanclass="lineno"> 204</span>{</div>
<divclass="line"><aid="l00205" name="l00205"></a><spanclass="lineno"> 205</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.name = name;</div>
<divclass="line"><aid="l00206" name="l00206"></a><spanclass="lineno"> 206</span>}</div>
</div>
<divclass="line"><aid="l00207" name="l00207"></a><spanclass="lineno"> 207</span></div>
<divclass="foldopen" id="foldopen00208" data-start="{" data-end="}">
<divclass="line"><aid="l00208" name="l00208"></a><spanclass="lineno"><aclass="line" href="classompl_1_1tools_1_1Benchmark.html#afab48f173edc785ee005301642b1afb1"> 208</a></span><spanclass="keywordtype">void</span><aclass="code hl_function" href="classompl_1_1tools_1_1Benchmark.html#afab48f173edc785ee005301642b1afb1">ompl::tools::Benchmark::addExperimentParameter</a>(<spanclass="keyword">const</span> std::string &name, <spanclass="keyword">const</span> std::string &type,</div>
<divclass="line"><aid="l00209" name="l00209"></a><spanclass="lineno"> 209</span><spanclass="keyword">const</span> std::string &value)</div>
<divclass="line"><aid="l00210" name="l00210"></a><spanclass="lineno"> 210</span>{</div>
<divclass="line"><aid="l00211" name="l00211"></a><spanclass="lineno"> 211</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.parameters[name + <spanclass="stringliteral">" "</span> + type] = value;</div>
<divclass="line"><aid="l00212" name="l00212"></a><spanclass="lineno"> 212</span>}</div>
</div>
<divclass="line"><aid="l00213" name="l00213"></a><spanclass="lineno"> 213</span></div>
<divclass="foldopen" id="foldopen00214" data-start="{" data-end="}">
<divclass="line"><aid="l00214" name="l00214"></a><spanclass="lineno"><aclass="line" href="classompl_1_1tools_1_1Benchmark.html#a2e407791f8baa54b2e7d491f20c4b3f5"> 214</a></span><spanclass="keyword">const</span> std::map<std::string, std::string> &<aclass="code hl_function" href="classompl_1_1tools_1_1Benchmark.html#a2e407791f8baa54b2e7d491f20c4b3f5">ompl::tools::Benchmark::getExperimentParameters</a>()<spanclass="keyword"> const</span></div>
<divclass="line"><aid="l00215" name="l00215"></a><spanclass="lineno"> 215</span><spanclass="keyword"></span>{</div>
<divclass="line"><aid="l00216" name="l00216"></a><spanclass="lineno"> 216</span><spanclass="keywordflow">return</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.parameters;</div>
<divclass="line"><aid="l00217" name="l00217"></a><spanclass="lineno"> 217</span>}</div>
</div>
<divclass="line"><aid="l00218" name="l00218"></a><spanclass="lineno"> 218</span></div>
<divclass="foldopen" id="foldopen00219" data-start="{" data-end="}">
<divclass="line"><aid="l00219" name="l00219"></a><spanclass="lineno"><aclass="line" href="classompl_1_1tools_1_1Benchmark.html#a96a5e5c2c1465e95ec5a5ea57c449518"> 219</a></span>std::size_t <aclass="code hl_function" href="classompl_1_1tools_1_1Benchmark.html#a96a5e5c2c1465e95ec5a5ea57c449518">ompl::tools::Benchmark::numExperimentParameters</a>()<spanclass="keyword"> const</span></div>
<divclass="line"><aid="l00220" name="l00220"></a><spanclass="lineno"> 220</span><spanclass="keyword"></span>{</div>
<divclass="line"><aid="l00221" name="l00221"></a><spanclass="lineno"> 221</span><spanclass="keywordflow">return</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.parameters.size();</div>
<divclass="line"><aid="l00222" name="l00222"></a><spanclass="lineno"> 222</span>}</div>
</div>
<divclass="line"><aid="l00223" name="l00223"></a><spanclass="lineno"> 223</span></div>
<divclass="foldopen" id="foldopen00224" data-start="{" data-end="}">
<divclass="line"><aid="l00224" name="l00224"></a><spanclass="lineno"><aclass="line" href="classompl_1_1tools_1_1Benchmark.html#a5cd270d95be4b130654bb6f3b978badf"> 224</a></span><spanclass="keywordtype">void</span><aclass="code hl_function" href="classompl_1_1tools_1_1Benchmark.html#a5cd270d95be4b130654bb6f3b978badf">ompl::tools::Benchmark::setExperimentName</a>(<spanclass="keyword">const</span> std::string &name)</div>
<divclass="line"><aid="l00225" name="l00225"></a><spanclass="lineno"> 225</span>{</div>
<divclass="line"><aid="l00226" name="l00226"></a><spanclass="lineno"> 226</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.name = name;</div>
<divclass="line"><aid="l00227" name="l00227"></a><spanclass="lineno"> 227</span>}</div>
</div>
<divclass="line"><aid="l00228" name="l00228"></a><spanclass="lineno"> 228</span></div>
<divclass="foldopen" id="foldopen00229" data-start="{" data-end="}">
<divclass="line"><aid="l00229" name="l00229"></a><spanclass="lineno"><aclass="line" href="classompl_1_1tools_1_1Benchmark.html#a4adb9f2da67bbb9074aadd0af4dde9ef"> 229</a></span><spanclass="keyword">const</span> std::string &<aclass="code hl_function" href="classompl_1_1tools_1_1Benchmark.html#a4adb9f2da67bbb9074aadd0af4dde9ef">ompl::tools::Benchmark::getExperimentName</a>()<spanclass="keyword"> const</span></div>
<divclass="line"><aid="l00230" name="l00230"></a><spanclass="lineno"> 230</span><spanclass="keyword"></span>{</div>
<divclass="line"><aid="l00231" name="l00231"></a><spanclass="lineno"> 231</span><spanclass="keywordflow">return</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.name;</div>
<divclass="line"><aid="l00232" name="l00232"></a><spanclass="lineno"> 232</span>}</div>
</div>
<divclass="line"><aid="l00233" name="l00233"></a><spanclass="lineno"> 233</span></div>
<divclass="foldopen" id="foldopen00234" data-start="{" data-end="}">
<divclass="line"><aid="l00234" name="l00234"></a><spanclass="lineno"><aclass="line" href="classompl_1_1tools_1_1Benchmark.html#a86fdc0094b39debe8ee310a9e2de8e31"> 234</a></span><spanclass="keywordtype">void</span><aclass="code hl_function" href="classompl_1_1tools_1_1Benchmark.html#a86fdc0094b39debe8ee310a9e2de8e31">ompl::tools::Benchmark::addPlanner</a>(<spanclass="keyword">const</span> base::PlannerPtr &planner)</div>
<divclass="line"><aid="l00235" name="l00235"></a><spanclass="lineno"> 235</span>{</div>
<divclass="line"><aid="l00236" name="l00236"></a><spanclass="lineno"> 236</span><spanclass="keywordflow">if</span> (planner && planner->getSpaceInformation().get() != (<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a> != <spanclass="keyword">nullptr</span> ? <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a>->getSpaceInformation().get() :</div>
<divclass="line"><aid="l00237" name="l00237"></a><spanclass="lineno"> 237</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a74f68df4ca4750779c5a2d5ef202c27e">csetup_</a>->getSpaceInformation().get()))</div>
<divclass="line"><aid="l00238" name="l00238"></a><spanclass="lineno"> 238</span><spanclass="keywordflow">throw</span><aclass="code hl_class" href="classompl_1_1Exception.html">Exception</a>(<spanclass="stringliteral">"Planner instance does not match space information"</span>);</div>
<divclass="line"><aid="l00239" name="l00239"></a><spanclass="lineno"> 239</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a3e166b0c8a0e8c935ec5b5f8627ed119">planners_</a>.push_back(planner);</div>
<divclass="line"><aid="l00240" name="l00240"></a><spanclass="lineno"> 240</span>}</div>
</div>
<divclass="line"><aid="l00241" name="l00241"></a><spanclass="lineno"> 241</span></div>
<divclass="foldopen" id="foldopen00242" data-start="{" data-end="}">
<divclass="line"><aid="l00242" name="l00242"></a><spanclass="lineno"><aclass="line" href="classompl_1_1tools_1_1Benchmark.html#a9641c6a479d33dc5e59a836bdd511fa4"> 242</a></span><spanclass="keywordtype">void</span><aclass="code hl_function" href="classompl_1_1tools_1_1Benchmark.html#a9641c6a479d33dc5e59a836bdd511fa4">ompl::tools::Benchmark::addPlannerAllocator</a>(<spanclass="keyword">const</span><aclass="code hl_typedef" href="namespaceompl_1_1base.html#a41bba72a22115120172303d5a5951c75">base::PlannerAllocator</a> &pa)</div>
<divclass="line"><aid="l00243" name="l00243"></a><spanclass="lineno"> 243</span>{</div>
<divclass="line"><aid="l00244" name="l00244"></a><spanclass="lineno"> 244</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a3e166b0c8a0e8c935ec5b5f8627ed119">planners_</a>.push_back(pa(<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a> != <spanclass="keyword">nullptr</span> ? <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a>->getSpaceInformation() : <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a74f68df4ca4750779c5a2d5ef202c27e">csetup_</a>->getSpaceInformation()));</div>
<divclass="line"><aid="l00245" name="l00245"></a><spanclass="lineno"> 245</span>}</div>
</div>
<divclass="line"><aid="l00246" name="l00246"></a><spanclass="lineno"> 246</span></div>
<divclass="foldopen" id="foldopen00247" data-start="{" data-end="}">
<divclass="line"><aid="l00247" name="l00247"></a><spanclass="lineno"><aclass="line" href="classompl_1_1tools_1_1Benchmark.html#a3dd03001e2d2afb0dc209fe8f6980f58"> 247</a></span><spanclass="keywordtype">void</span><aclass="code hl_function" href="classompl_1_1tools_1_1Benchmark.html#a3dd03001e2d2afb0dc209fe8f6980f58">ompl::tools::Benchmark::clearPlanners</a>()</div>
<divclass="line"><aid="l00248" name="l00248"></a><spanclass="lineno"> 248</span>{</div>
<divclass="line"><aid="l00249" name="l00249"></a><spanclass="lineno"> 249</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a3e166b0c8a0e8c935ec5b5f8627ed119">planners_</a>.clear();</div>
<divclass="line"><aid="l00250" name="l00250"></a><spanclass="lineno"> 250</span>}</div>
</div>
<divclass="line"><aid="l00251" name="l00251"></a><spanclass="lineno"> 251</span></div>
<divclass="foldopen" id="foldopen00252" data-start="{" data-end="}">
<divclass="line"><aid="l00252" name="l00252"></a><spanclass="lineno"><aclass="line" href="classompl_1_1tools_1_1Benchmark.html#a641cd9b520392c02eefd1ce96ec07a4e"> 252</a></span><spanclass="keywordtype">void</span><aclass="code hl_function" href="classompl_1_1tools_1_1Benchmark.html#a641cd9b520392c02eefd1ce96ec07a4e">ompl::tools::Benchmark::setPlannerSwitchEvent</a>(<spanclass="keyword">const</span><aclass="code hl_typedef" href="classompl_1_1tools_1_1Benchmark.html#a23533c490c5ae9617b9aeff21cb3929f">PreSetupEvent</a> &event)</div>
<divclass="line"><aid="l00253" name="l00253"></a><spanclass="lineno"> 253</span>{</div>
<divclass="line"><aid="l00254" name="l00254"></a><spanclass="lineno"> 254</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a1bf6e6b434ae98d6d54808d5e65ded43">plannerSwitch_</a> = event;</div>
<divclass="line"><aid="l00255" name="l00255"></a><spanclass="lineno"> 255</span>}</div>
</div>
<divclass="line"><aid="l00256" name="l00256"></a><spanclass="lineno"> 256</span></div>
<divclass="foldopen" id="foldopen00258" data-start="{" data-end="}">
<divclass="line"><aid="l00258" name="l00258"></a><spanclass="lineno"><aclass="line" href="classompl_1_1tools_1_1Benchmark.html#a405e0a2857e17e93992ca9e642618787"> 258</a></span><spanclass="keywordtype">void</span><aclass="code hl_function" href="classompl_1_1tools_1_1Benchmark.html#a405e0a2857e17e93992ca9e642618787">ompl::tools::Benchmark::setPreRunEvent</a>(<spanclass="keyword">const</span><aclass="code hl_typedef" href="classompl_1_1tools_1_1Benchmark.html#a23533c490c5ae9617b9aeff21cb3929f">PreSetupEvent</a> &event)</div>
<divclass="line"><aid="l00259" name="l00259"></a><spanclass="lineno"> 259</span>{</div>
<divclass="line"><aid="l00260" name="l00260"></a><spanclass="lineno"> 260</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#ab3b2565d2fb0362bff5fbdd0d0080159">preRun_</a> = event;</div>
<divclass="line"><aid="l00261" name="l00261"></a><spanclass="lineno"> 261</span>}</div>
</div>
<divclass="line"><aid="l00262" name="l00262"></a><spanclass="lineno"> 262</span></div>
<divclass="foldopen" id="foldopen00264" data-start="{" data-end="}">
<divclass="line"><aid="l00264" name="l00264"></a><spanclass="lineno"><aclass="line" href="classompl_1_1tools_1_1Benchmark.html#a8c97a673cf3d27b4c8d6dbc592b56ce4"> 264</a></span><spanclass="keywordtype">void</span><aclass="code hl_function" href="classompl_1_1tools_1_1Benchmark.html#a8c97a673cf3d27b4c8d6dbc592b56ce4">ompl::tools::Benchmark::setPostRunEvent</a>(<spanclass="keyword">const</span><aclass="code hl_typedef" href="classompl_1_1tools_1_1Benchmark.html#a75b718cb770089ade746bcb12c74b832">PostSetupEvent</a> &event)</div>
<divclass="line"><aid="l00265" name="l00265"></a><spanclass="lineno"> 265</span>{</div>
<divclass="line"><aid="l00266" name="l00266"></a><spanclass="lineno"> 266</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a48b0e489b98ae6d5801f730467430bc1">postRun_</a> = event;</div>
<divclass="line"><aid="l00267" name="l00267"></a><spanclass="lineno"> 267</span>}</div>
</div>
<divclass="line"><aid="l00268" name="l00268"></a><spanclass="lineno"> 268</span></div>
<divclass="foldopen" id="foldopen00269" data-start="{" data-end="}">
<divclass="line"><aid="l00269" name="l00269"></a><spanclass="lineno"><aclass="line" href="classompl_1_1tools_1_1Benchmark.html#a37b5881fa63f93377e88766f6c25d88a"> 269</a></span><spanclass="keyword">const</span><aclass="code hl_struct" href="structompl_1_1tools_1_1Benchmark_1_1Status.html">ompl::tools::Benchmark::Status</a> &<aclass="code hl_function" href="classompl_1_1tools_1_1Benchmark.html#a37b5881fa63f93377e88766f6c25d88a">ompl::tools::Benchmark::getStatus</a>()<spanclass="keyword"> const</span></div>
<divclass="line"><aid="l00270" name="l00270"></a><spanclass="lineno"> 270</span><spanclass="keyword"></span>{</div>
<divclass="line"><aid="l00271" name="l00271"></a><spanclass="lineno"> 271</span><spanclass="keywordflow">return</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a28b6c76500d022dba4a8bc075bdcc5d2">status_</a>;</div>
<divclass="line"><aid="l00272" name="l00272"></a><spanclass="lineno"> 272</span>}</div>
</div>
<divclass="line"><aid="l00273" name="l00273"></a><spanclass="lineno"> 273</span></div>
<divclass="foldopen" id="foldopen00274" data-start="{" data-end="}">
<divclass="line"><aid="l00274" name="l00274"></a><spanclass="lineno"><aclass="line" href="classompl_1_1tools_1_1Benchmark.html#aa5706f2fed0ed94583f9e39377cc89e3"> 274</a></span><spanclass="keyword">const</span><aclass="code hl_struct" href="structompl_1_1tools_1_1Benchmark_1_1CompleteExperiment.html">ompl::tools::Benchmark::CompleteExperiment</a> &<aclass="code hl_function" href="classompl_1_1tools_1_1Benchmark.html#aa5706f2fed0ed94583f9e39377cc89e3">ompl::tools::Benchmark::getRecordedExperimentData</a>()<spanclass="keyword"> const</span></div>
<divclass="line"><aid="l00275" name="l00275"></a><spanclass="lineno"> 275</span><spanclass="keyword"></span>{</div>
<divclass="line"><aid="l00276" name="l00276"></a><spanclass="lineno"> 276</span><spanclass="keywordflow">return</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>;</div>
<divclass="line"><aid="l00277" name="l00277"></a><spanclass="lineno"> 277</span>}</div>
</div>
<divclass="line"><aid="l00278" name="l00278"></a><spanclass="lineno"> 278</span></div>
<divclass="foldopen" id="foldopen00279" data-start="{" data-end="}">
<divclass="line"><aid="l00279" name="l00279"></a><spanclass="lineno"><aclass="line" href="classompl_1_1tools_1_1Benchmark.html#ac3a46507c4b8f4a3379ecca534f4ca93"> 279</a></span><spanclass="keywordtype">bool</span><aclass="code hl_function" href="classompl_1_1tools_1_1Benchmark.html#a979f5df0704b89e7da4a1c29ab857a02">ompl::tools::Benchmark::saveResultsToFile</a>(<spanclass="keyword">const</span><spanclass="keywordtype">char</span> *filename)<spanclass="keyword"> const</span></div>
<divclass="line"><aid="l00280" name="l00280"></a><spanclass="lineno"> 280</span><spanclass="keyword"></span>{</div>
<divclass="line"><aid="l00281" name="l00281"></a><spanclass="lineno"> 281</span><spanclass="keywordtype">bool</span> result = <spanclass="keyword">false</span>;</div>
<divclass="line"><aid="l00282" name="l00282"></a><spanclass="lineno"> 282</span></div>
<divclass="line"><aid="l00283" name="l00283"></a><spanclass="lineno"> 283</span> std::ofstream fout(filename);</div>
<divclass="line"><aid="l00284" name="l00284"></a><spanclass="lineno"> 284</span><spanclass="keywordflow">if</span> (fout.good())</div>
<divclass="line"><aid="l00285" name="l00285"></a><spanclass="lineno"> 285</span> {</div>
<divclass="line"><aid="l00286" name="l00286"></a><spanclass="lineno"> 286</span> result = <aclass="code hl_function" href="classompl_1_1tools_1_1Benchmark.html#a9f63b0b4e3de67b937bfa3022caf7348">saveResultsToStream</a>(fout);</div>
<divclass="line"><aid="l00287" name="l00287"></a><spanclass="lineno"> 287</span><aclass="code hl_define" href="group__logging.html#ga04bc36d1b8c57ad7e13a8a48451a3a05">OMPL_INFORM</a>(<spanclass="stringliteral">"Results saved to '%s'"</span>, filename);</div>
<divclass="line"><aid="l00288" name="l00288"></a><spanclass="lineno"> 288</span> }</div>
<divclass="line"><aid="l00289" name="l00289"></a><spanclass="lineno"> 289</span><spanclass="keywordflow">else</span></div>
<divclass="line"><aid="l00290" name="l00290"></a><spanclass="lineno"> 290</span> {</div>
<divclass="line"><aid="l00291" name="l00291"></a><spanclass="lineno"> 291</span><spanclass="comment">// try to save to a different file, if we can</span></div>
<divclass="line"><aid="l00292" name="l00292"></a><spanclass="lineno"> 292</span><spanclass="keywordflow">if</span> (getResultsFilename(<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>) != std::string(filename))</div>
<divclass="line"><aid="l00293" name="l00293"></a><spanclass="lineno"> 293</span> result = <aclass="code hl_function" href="classompl_1_1tools_1_1Benchmark.html#ac3a46507c4b8f4a3379ecca534f4ca93">saveResultsToFile</a>();</div>
<divclass="line"><aid="l00294" name="l00294"></a><spanclass="lineno"> 294</span></div>
<divclass="line"><aid="l00295" name="l00295"></a><spanclass="lineno"> 295</span><aclass="code hl_define" href="group__logging.html#ga05ad3ae88188e7f248748785afd2b882">OMPL_ERROR</a>(<spanclass="stringliteral">"Unable to write results to '%s'"</span>, filename);</div>
<divclass="line"><aid="l00296" name="l00296"></a><spanclass="lineno"> 296</span> }</div>
<divclass="line"><aid="l00297" name="l00297"></a><spanclass="lineno"> 297</span><spanclass="keywordflow">return</span> result;</div>
<divclass="line"><aid="l00298" name="l00298"></a><spanclass="lineno"> 298</span>}</div>
</div>
<divclass="line"><aid="l00299" name="l00299"></a><spanclass="lineno"> 299</span></div>
<divclass="foldopen" id="foldopen00300" data-start="{" data-end="}">
<divclass="line"><aid="l00300" name="l00300"></a><spanclass="lineno"><aclass="line" href="classompl_1_1tools_1_1Benchmark.html#a979f5df0704b89e7da4a1c29ab857a02"> 300</a></span><spanclass="keywordtype">bool</span><aclass="code hl_function" href="classompl_1_1tools_1_1Benchmark.html#a979f5df0704b89e7da4a1c29ab857a02">ompl::tools::Benchmark::saveResultsToFile</a>()<spanclass="keyword"> const</span></div>
<divclass="line"><aid="l00301" name="l00301"></a><spanclass="lineno"> 301</span><spanclass="keyword"></span>{</div>
<divclass="line"><aid="l00302" name="l00302"></a><spanclass="lineno"> 302</span> std::string filename = getResultsFilename(<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>);</div>
<divclass="line"><aid="l00303" name="l00303"></a><spanclass="lineno"> 303</span><spanclass="keywordflow">return</span><aclass="code hl_function" href="classompl_1_1tools_1_1Benchmark.html#ac3a46507c4b8f4a3379ecca534f4ca93">saveResultsToFile</a>(filename.c_str());</div>
<divclass="line"><aid="l00304" name="l00304"></a><spanclass="lineno"> 304</span>}</div>
</div>
<divclass="line"><aid="l00305" name="l00305"></a><spanclass="lineno"> 305</span></div>
<divclass="foldopen" id="foldopen00306" data-start="{" data-end="}">
<divclass="line"><aid="l00306" name="l00306"></a><spanclass="lineno"><aclass="line" href="classompl_1_1tools_1_1Benchmark.html#a9f63b0b4e3de67b937bfa3022caf7348"> 306</a></span><spanclass="keywordtype">bool</span><aclass="code hl_function" href="classompl_1_1tools_1_1Benchmark.html#a9f63b0b4e3de67b937bfa3022caf7348">ompl::tools::Benchmark::saveResultsToStream</a>(std::ostream &out)<spanclass="keyword"> const</span></div>
<divclass="line"><aid="l00307" name="l00307"></a><spanclass="lineno"> 307</span><spanclass="keyword"></span>{</div>
<divclass="line"><aid="l00308" name="l00308"></a><spanclass="lineno"> 308</span><spanclass="keywordflow">if</span> (<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.planners.empty())</div>
<divclass="line"><aid="l00309" name="l00309"></a><spanclass="lineno"> 309</span> {</div>
<divclass="line"><aid="l00310" name="l00310"></a><spanclass="lineno"> 310</span><aclass="code hl_define" href="group__logging.html#gab76357dced39cb468d2061d3358f80a6">OMPL_WARN</a>(<spanclass="stringliteral">"There is no experimental data to save"</span>);</div>
<divclass="line"><aid="l00311" name="l00311"></a><spanclass="lineno"> 311</span><spanclass="keywordflow">return</span><spanclass="keyword">false</span>;</div>
<divclass="line"><aid="l00312" name="l00312"></a><spanclass="lineno"> 312</span> }</div>
<divclass="line"><aid="l00313" name="l00313"></a><spanclass="lineno"> 313</span></div>
<divclass="line"><aid="l00314" name="l00314"></a><spanclass="lineno"> 314</span><spanclass="keywordflow">if</span> (!out.good())</div>
<divclass="line"><aid="l00315" name="l00315"></a><spanclass="lineno"> 315</span> {</div>
<divclass="line"><aid="l00316" name="l00316"></a><spanclass="lineno"> 316</span><aclass="code hl_define" href="group__logging.html#ga05ad3ae88188e7f248748785afd2b882">OMPL_ERROR</a>(<spanclass="stringliteral">"Unable to write to stream"</span>);</div>
<divclass="line"><aid="l00317" name="l00317"></a><spanclass="lineno"> 317</span><spanclass="keywordflow">return</span><spanclass="keyword">false</span>;</div>
<divclass="line"><aid="l00318" name="l00318"></a><spanclass="lineno"> 318</span> }</div>
<divclass="line"><aid="l00319" name="l00319"></a><spanclass="lineno"> 319</span></div>
<divclass="line"><aid="l00320" name="l00320"></a><spanclass="lineno"> 320</span> out << <spanclass="stringliteral">"OMPL version "</span> << OMPL_VERSION << std::endl;</div>
<divclass="line"><aid="l00321" name="l00321"></a><spanclass="lineno"> 321</span> out << <spanclass="stringliteral">"Experiment "</span> << (<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.name.empty() ? <spanclass="stringliteral">"NO_NAME"</span> : <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.name) << std::endl;</div>
<divclass="line"><aid="l00322" name="l00322"></a><spanclass="lineno"> 322</span></div>
<divclass="line"><aid="l00323" name="l00323"></a><spanclass="lineno"> 323</span> out << <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.parameters.size() << <spanclass="stringliteral">" experiment properties"</span> << std::endl;</div>
<divclass="line"><aid="l00324" name="l00324"></a><spanclass="lineno"> 324</span><spanclass="keywordflow">for</span> (<spanclass="keyword">const</span><spanclass="keyword">auto</span> &parameter : <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.parameters)</div>
<divclass="line"><aid="l00325" name="l00325"></a><spanclass="lineno"> 325</span> out << parameter.first << <spanclass="stringliteral">" = "</span> << parameter.second << std::endl;</div>
<divclass="line"><aid="l00326" name="l00326"></a><spanclass="lineno"> 326</span></div>
<divclass="line"><aid="l00327" name="l00327"></a><spanclass="lineno"> 327</span> out << <spanclass="stringliteral">"Running on "</span> << (<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.host.empty() ? <spanclass="stringliteral">"UNKNOWN"</span> : <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.host) << std::endl;</div>
<divclass="line"><aid="l00328" name="l00328"></a><spanclass="lineno"> 328</span> out << <spanclass="stringliteral">"Starting at "</span> << <aclass="code hl_function" href="namespaceompl_1_1time.html#ae8d794354a37128403aba90a187fe532">time::as_string</a>(<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.startTime) << std::endl;</div>
<divclass="line"><aid="l00329" name="l00329"></a><spanclass="lineno"> 329</span> out << <spanclass="stringliteral">"<<<|"</span> << std::endl << <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.setupInfo << <spanclass="stringliteral">"|>>>"</span> << std::endl;</div>
<divclass="line"><aid="l00330" name="l00330"></a><spanclass="lineno"> 330</span> out << <spanclass="stringliteral">"<<<|"</span> << std::endl << <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.cpuInfo << <spanclass="stringliteral">"|>>>"</span> << std::endl;</div>
<divclass="line"><aid="l00331" name="l00331"></a><spanclass="lineno"> 331</span></div>
<divclass="line"><aid="l00332" name="l00332"></a><spanclass="lineno"> 332</span> out << <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.seed << <spanclass="stringliteral">" is the random seed"</span> << std::endl;</div>
<divclass="line"><aid="l00333" name="l00333"></a><spanclass="lineno"> 333</span> out << <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.maxTime << <spanclass="stringliteral">" seconds per run"</span> << std::endl;</div>
<divclass="line"><aid="l00334" name="l00334"></a><spanclass="lineno"> 334</span> out << <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.maxMem << <spanclass="stringliteral">" MB per run"</span> << std::endl;</div>
<divclass="line"><aid="l00335" name="l00335"></a><spanclass="lineno"> 335</span> out << <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.runCount << <spanclass="stringliteral">" runs per planner"</span> << std::endl;</div>
<divclass="line"><aid="l00336" name="l00336"></a><spanclass="lineno"> 336</span> out << <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.totalDuration << <spanclass="stringliteral">" seconds spent to collect the data"</span> << std::endl;</div>
<divclass="line"><aid="l00337" name="l00337"></a><spanclass="lineno"> 337</span></div>
<divclass="line"><aid="l00338" name="l00338"></a><spanclass="lineno"> 338</span><spanclass="comment">// change this if more enum types are added</span></div>
<divclass="line"><aid="l00339" name="l00339"></a><spanclass="lineno"> 339</span> out << <spanclass="stringliteral">"1 enum type"</span> << std::endl;</div>
<divclass="line"><aid="l00340" name="l00340"></a><spanclass="lineno"> 340</span> out << <spanclass="stringliteral">"status"</span>;</div>
<divclass="line"><aid="l00341" name="l00341"></a><spanclass="lineno"> 341</span><spanclass="keywordflow">for</span> (<spanclass="keywordtype">unsigned</span><spanclass="keywordtype">int</span> i = 0; i < <aclass="code hl_enumvalue" href="structompl_1_1base_1_1PlannerStatus.html#a5fe3825813b066b664b3dd34dd1bc8c4ac60ae0f04326edcd4fa202cda3dddb33">base::PlannerStatus::TYPE_COUNT</a>; ++i)</div>
<divclass="line"><aid="l00342" name="l00342"></a><spanclass="lineno"> 342</span> out << <spanclass="charliteral">'|'</span> << <aclass="code hl_struct" href="structompl_1_1base_1_1PlannerStatus.html">base::PlannerStatus</a>(<spanclass="keyword">static_cast<</span><aclass="code hl_enumeration" href="structompl_1_1base_1_1PlannerStatus.html#a5fe3825813b066b664b3dd34dd1bc8c4">base::PlannerStatus::StatusType</a><spanclass="keyword">></span>(i)).<aclass="code hl_function" href="structompl_1_1base_1_1PlannerStatus.html#ac9bdc9db7d5325710fb9ac74d27900ad">asString</a>();</div>
<divclass="line"><aid="l00343" name="l00343"></a><spanclass="lineno"> 343</span> out << std::endl;</div>
<divclass="line"><aid="l00344" name="l00344"></a><spanclass="lineno"> 344</span></div>
<divclass="line"><aid="l00345" name="l00345"></a><spanclass="lineno"> 345</span> out << <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.planners.size() << <spanclass="stringliteral">" planners"</span> << std::endl;</div>
<divclass="line"><aid="l00346" name="l00346"></a><spanclass="lineno"> 346</span></div>
<divclass="line"><aid="l00347" name="l00347"></a><spanclass="lineno"> 347</span><spanclass="keywordflow">for</span> (<spanclass="keyword">const</span><spanclass="keyword">auto</span> &planner : <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.planners)</div>
<divclass="line"><aid="l00348" name="l00348"></a><spanclass="lineno"> 348</span> {</div>
<divclass="line"><aid="l00349" name="l00349"></a><spanclass="lineno"> 349</span> out << planner.name << std::endl;</div>
<divclass="line"><aid="l00350" name="l00350"></a><spanclass="lineno"> 350</span></div>
<divclass="line"><aid="l00351" name="l00351"></a><spanclass="lineno"> 351</span><spanclass="comment">// get names of common properties</span></div>
<divclass="line"><aid="l00352" name="l00352"></a><spanclass="lineno"> 352</span> std::vector<std::string> properties;</div>
<divclass="line"><aid="l00353" name="l00353"></a><spanclass="lineno"> 353</span><spanclass="keywordflow">for</span> (<spanclass="keyword">auto</span> &property : planner.common)</div>
<divclass="line"><aid="l00354" name="l00354"></a><spanclass="lineno"> 354</span> properties.push_back(property.first);</div>
<divclass="line"><aid="l00355" name="l00355"></a><spanclass="lineno"> 355</span> std::sort(properties.begin(), properties.end());</div>
<divclass="line"><aid="l00356" name="l00356"></a><spanclass="lineno"> 356</span></div>
<divclass="line"><aid="l00357" name="l00357"></a><spanclass="lineno"> 357</span><spanclass="comment">// print names & values of common properties</span></div>
<divclass="line"><aid="l00358" name="l00358"></a><spanclass="lineno"> 358</span> out << properties.size() << <spanclass="stringliteral">" common properties"</span> << std::endl;</div>
<divclass="line"><aid="l00359" name="l00359"></a><spanclass="lineno"> 359</span><spanclass="keywordflow">for</span> (<spanclass="keyword">auto</span> &property : properties)</div>
<divclass="line"><aid="l00360" name="l00360"></a><spanclass="lineno"> 360</span> {</div>
<divclass="line"><aid="l00361" name="l00361"></a><spanclass="lineno"> 361</span><spanclass="keyword">auto</span> it = planner.common.find(property);</div>
<divclass="line"><aid="l00362" name="l00362"></a><spanclass="lineno"> 362</span> out << it->first << <spanclass="stringliteral">" = "</span> << it->second << std::endl;</div>
<divclass="line"><aid="l00363" name="l00363"></a><spanclass="lineno"> 363</span> }</div>
<divclass="line"><aid="l00364" name="l00364"></a><spanclass="lineno"> 364</span></div>
<divclass="line"><aid="l00365" name="l00365"></a><spanclass="lineno"> 365</span><spanclass="comment">// construct the list of all possible properties for all runs</span></div>
<divclass="line"><aid="l00366" name="l00366"></a><spanclass="lineno"> 366</span> std::map<std::string, bool> propSeen;</div>
<divclass="line"><aid="l00367" name="l00367"></a><spanclass="lineno"> 367</span><spanclass="keywordflow">for</span> (<spanclass="keyword">auto</span> &run : planner.runs)</div>
<divclass="line"><aid="l00368" name="l00368"></a><spanclass="lineno"> 368</span><spanclass="keywordflow">for</span> (<spanclass="keyword">auto</span> &property : run)</div>
<divclass="line"><aid="l00369" name="l00369"></a><spanclass="lineno"> 369</span> propSeen[<spanclass="keyword">property</span>.first] = <spanclass="keyword">true</span>;</div>
<divclass="line"><aid="l00370" name="l00370"></a><spanclass="lineno"> 370</span></div>
<divclass="line"><aid="l00371" name="l00371"></a><spanclass="lineno"> 371</span> properties.clear();</div>
<divclass="line"><aid="l00372" name="l00372"></a><spanclass="lineno"> 372</span></div>
<divclass="line"><aid="l00373" name="l00373"></a><spanclass="lineno"> 373</span><spanclass="keywordflow">for</span> (<spanclass="keyword">auto</span> &it : propSeen)</div>
<divclass="line"><aid="l00374" name="l00374"></a><spanclass="lineno"> 374</span> properties.push_back(it.first);</div>
<divclass="line"><aid="l00375" name="l00375"></a><spanclass="lineno"> 375</span> std::sort(properties.begin(), properties.end());</div>
<divclass="line"><aid="l00376" name="l00376"></a><spanclass="lineno"> 376</span></div>
<divclass="line"><aid="l00377" name="l00377"></a><spanclass="lineno"> 377</span><spanclass="comment">// print the property names</span></div>
<divclass="line"><aid="l00378" name="l00378"></a><spanclass="lineno"> 378</span> out << properties.size() << <spanclass="stringliteral">" properties for each run"</span> << std::endl;</div>
<divclass="line"><aid="l00379" name="l00379"></a><spanclass="lineno"> 379</span><spanclass="keywordflow">for</span> (<spanclass="keyword">auto</span> &property : properties)</div>
<divclass="line"><aid="l00380" name="l00380"></a><spanclass="lineno"> 380</span> out << <spanclass="keyword">property</span> << std::endl;</div>
<divclass="line"><aid="l00381" name="l00381"></a><spanclass="lineno"> 381</span></div>
<divclass="line"><aid="l00382" name="l00382"></a><spanclass="lineno"> 382</span><spanclass="comment">// print the data for each run</span></div>
<divclass="line"><aid="l00383" name="l00383"></a><spanclass="lineno"> 383</span> out << planner.runs.size() << <spanclass="stringliteral">" runs"</span> << std::endl;</div>
<divclass="line"><aid="l00384" name="l00384"></a><spanclass="lineno"> 384</span><spanclass="keywordflow">for</span> (<spanclass="keyword">auto</span> &run : planner.runs)</div>
<divclass="line"><aid="l00385" name="l00385"></a><spanclass="lineno"> 385</span> {</div>
<divclass="line"><aid="l00386" name="l00386"></a><spanclass="lineno"> 386</span><spanclass="keywordflow">for</span> (<spanclass="keyword">auto</span> &property : properties)</div>
<divclass="line"><aid="l00387" name="l00387"></a><spanclass="lineno"> 387</span> {</div>
<divclass="line"><aid="l00388" name="l00388"></a><spanclass="lineno"> 388</span><spanclass="keyword">auto</span> it = run.find(property);</div>
<divclass="line"><aid="l00389" name="l00389"></a><spanclass="lineno"> 389</span><spanclass="keywordflow">if</span> (it != run.end())</div>
<divclass="line"><aid="l00390" name="l00390"></a><spanclass="lineno"> 390</span> out << it->second;</div>
<divclass="line"><aid="l00391" name="l00391"></a><spanclass="lineno"> 391</span> out << <spanclass="stringliteral">"; "</span>;</div>
<divclass="line"><aid="l00392" name="l00392"></a><spanclass="lineno"> 392</span> }</div>
<divclass="line"><aid="l00393" name="l00393"></a><spanclass="lineno"> 393</span> out << std::endl;</div>
<divclass="line"><aid="l00394" name="l00394"></a><spanclass="lineno"> 394</span> }</div>
<divclass="line"><aid="l00395" name="l00395"></a><spanclass="lineno"> 395</span></div>
<divclass="line"><aid="l00396" name="l00396"></a><spanclass="lineno"> 396</span><spanclass="comment">// print the run progress data if it was reported</span></div>
<divclass="line"><aid="l00397" name="l00397"></a><spanclass="lineno"> 397</span><spanclass="keywordflow">if</span> (planner.runsProgressData.size() > 0)</div>
<divclass="line"><aid="l00398" name="l00398"></a><spanclass="lineno"> 398</span> {</div>
<divclass="line"><aid="l00399" name="l00399"></a><spanclass="lineno"> 399</span><spanclass="comment">// Print number of progress properties</span></div>
<divclass="line"><aid="l00400" name="l00400"></a><spanclass="lineno"> 400</span> out << planner.progressPropertyNames.size() << <spanclass="stringliteral">" progress properties for each run"</span> << std::endl;</div>
<divclass="line"><aid="l00401" name="l00401"></a><spanclass="lineno"> 401</span><spanclass="comment">// Print progress property names</span></div>
<divclass="line"><aid="l00402" name="l00402"></a><spanclass="lineno"> 402</span><spanclass="keywordflow">for</span> (<spanclass="keyword">const</span><spanclass="keyword">auto</span> &progPropName : planner.progressPropertyNames)</div>
<divclass="line"><aid="l00403" name="l00403"></a><spanclass="lineno"> 403</span> {</div>
<divclass="line"><aid="l00404" name="l00404"></a><spanclass="lineno"> 404</span> out << progPropName << std::endl;</div>
<divclass="line"><aid="l00405" name="l00405"></a><spanclass="lineno"> 405</span> }</div>
<divclass="line"><aid="l00406" name="l00406"></a><spanclass="lineno"> 406</span><spanclass="comment">// Print progress properties for each run</span></div>
<divclass="line"><aid="l00407" name="l00407"></a><spanclass="lineno"> 407</span> out << planner.runsProgressData.size() << <spanclass="stringliteral">" runs"</span> << std::endl;</div>
<divclass="line"><aid="l00408" name="l00408"></a><spanclass="lineno"> 408</span><spanclass="keywordflow">for</span> (<spanclass="keyword">const</span><spanclass="keyword">auto</span> &r : planner.runsProgressData)</div>
<divclass="line"><aid="l00409" name="l00409"></a><spanclass="lineno"> 409</span> {</div>
<divclass="line"><aid="l00410" name="l00410"></a><spanclass="lineno"> 410</span><spanclass="comment">// For each time point</span></div>
<divclass="line"><aid="l00411" name="l00411"></a><spanclass="lineno"> 411</span><spanclass="keywordflow">for</span> (<spanclass="keyword">const</span><spanclass="keyword">auto</span> &t : r)</div>
<divclass="line"><aid="l00412" name="l00412"></a><spanclass="lineno"> 412</span> {</div>
<divclass="line"><aid="l00413" name="l00413"></a><spanclass="lineno"> 413</span><spanclass="comment">// Print each of the properties at that time point</span></div>
<divclass="line"><aid="l00414" name="l00414"></a><spanclass="lineno"> 414</span><spanclass="keywordflow">for</span> (<spanclass="keyword">const</span><spanclass="keyword">auto</span> &iter : t)</div>
<divclass="line"><aid="l00415" name="l00415"></a><spanclass="lineno"> 415</span> {</div>
<divclass="line"><aid="l00416" name="l00416"></a><spanclass="lineno"> 416</span> out << iter.second << <spanclass="stringliteral">","</span>;</div>
<divclass="line"><aid="l00417" name="l00417"></a><spanclass="lineno"> 417</span> }</div>
<divclass="line"><aid="l00418" name="l00418"></a><spanclass="lineno"> 418</span></div>
<divclass="line"><aid="l00419" name="l00419"></a><spanclass="lineno"> 419</span><spanclass="comment">// Separate time points by semicolons</span></div>
<divclass="line"><aid="l00420" name="l00420"></a><spanclass="lineno"> 420</span> out << <spanclass="stringliteral">";"</span>;</div>
<divclass="line"><aid="l00421" name="l00421"></a><spanclass="lineno"> 421</span> }</div>
<divclass="line"><aid="l00422" name="l00422"></a><spanclass="lineno"> 422</span></div>
<divclass="line"><aid="l00423" name="l00423"></a><spanclass="lineno"> 423</span><spanclass="comment">// Separate runs by newlines</span></div>
<divclass="line"><aid="l00424" name="l00424"></a><spanclass="lineno"> 424</span> out << std::endl;</div>
<divclass="line"><aid="l00425" name="l00425"></a><spanclass="lineno"> 425</span> }</div>
<divclass="line"><aid="l00426" name="l00426"></a><spanclass="lineno"> 426</span> }</div>
<divclass="line"><aid="l00427" name="l00427"></a><spanclass="lineno"> 427</span></div>
<divclass="line"><aid="l00428" name="l00428"></a><spanclass="lineno"> 428</span> out << <spanclass="charliteral">'.'</span> << std::endl;</div>
<divclass="line"><aid="l00429" name="l00429"></a><spanclass="lineno"> 429</span> }</div>
<divclass="line"><aid="l00430" name="l00430"></a><spanclass="lineno"> 430</span><spanclass="keywordflow">return</span><spanclass="keyword">true</span>;</div>
<divclass="line"><aid="l00431" name="l00431"></a><spanclass="lineno"> 431</span>}</div>
</div>
<divclass="line"><aid="l00432" name="l00432"></a><spanclass="lineno"> 432</span></div>
<divclass="foldopen" id="foldopen00433" data-start="{" data-end="}">
<divclass="line"><aid="l00433" name="l00433"></a><spanclass="lineno"><aclass="line" href="classompl_1_1tools_1_1Benchmark.html#a3257cb8dccc15037e81c0f235c61a7e8"> 433</a></span><spanclass="keywordtype">void</span><aclass="code hl_function" href="classompl_1_1tools_1_1Benchmark.html#a3257cb8dccc15037e81c0f235c61a7e8">ompl::tools::Benchmark::benchmark</a>(<spanclass="keyword">const</span><aclass="code hl_struct" href="structompl_1_1tools_1_1Benchmark_1_1Request.html">Request</a> &req)</div>
<divclass="line"><aid="l00434" name="l00434"></a><spanclass="lineno"> 434</span>{</div>
<divclass="line"><aid="l00435" name="l00435"></a><spanclass="lineno"> 435</span><spanclass="comment">// sanity checks</span></div>
<divclass="line"><aid="l00436" name="l00436"></a><spanclass="lineno"> 436</span><spanclass="keywordflow">if</span> (<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a>)</div>
<divclass="line"><aid="l00437" name="l00437"></a><spanclass="lineno"> 437</span> {</div>
<divclass="line"><aid="l00438" name="l00438"></a><spanclass="lineno"> 438</span><spanclass="keywordflow">if</span> (!<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a>->getSpaceInformation()->isSetup())</div>
<divclass="line"><aid="l00439" name="l00439"></a><spanclass="lineno"> 439</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a>->getSpaceInformation()->setup();</div>
<divclass="line"><aid="l00440" name="l00440"></a><spanclass="lineno"> 440</span> }</div>
<divclass="line"><aid="l00441" name="l00441"></a><spanclass="lineno"> 441</span><spanclass="keywordflow">else</span></div>
<divclass="line"><aid="l00442" name="l00442"></a><spanclass="lineno"> 442</span> {</div>
<divclass="line"><aid="l00443" name="l00443"></a><spanclass="lineno"> 443</span><spanclass="keywordflow">if</span> (!<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a74f68df4ca4750779c5a2d5ef202c27e">csetup_</a>->getSpaceInformation()->isSetup())</div>
<divclass="line"><aid="l00444" name="l00444"></a><spanclass="lineno"> 444</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a74f68df4ca4750779c5a2d5ef202c27e">csetup_</a>->getSpaceInformation()->setup();</div>
<divclass="line"><aid="l00445" name="l00445"></a><spanclass="lineno"> 445</span> }</div>
<divclass="line"><aid="l00446" name="l00446"></a><spanclass="lineno"> 446</span></div>
<divclass="line"><aid="l00447" name="l00447"></a><spanclass="lineno"> 447</span><spanclass="keywordflow">if</span> (!(<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a> ? <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a>->getGoal() : <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a74f68df4ca4750779c5a2d5ef202c27e">csetup_</a>->getGoal()))</div>
<divclass="line"><aid="l00448" name="l00448"></a><spanclass="lineno"> 448</span> {</div>
<divclass="line"><aid="l00449" name="l00449"></a><spanclass="lineno"> 449</span><aclass="code hl_define" href="group__logging.html#ga05ad3ae88188e7f248748785afd2b882">OMPL_ERROR</a>(<spanclass="stringliteral">"No goal defined"</span>);</div>
<divclass="line"><aid="l00450" name="l00450"></a><spanclass="lineno"> 450</span><spanclass="keywordflow">return</span>;</div>
<divclass="line"><aid="l00451" name="l00451"></a><spanclass="lineno"> 451</span> }</div>
<divclass="line"><aid="l00452" name="l00452"></a><spanclass="lineno"> 452</span></div>
<divclass="line"><aid="l00453" name="l00453"></a><spanclass="lineno"> 453</span><spanclass="keywordflow">if</span> (<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a3e166b0c8a0e8c935ec5b5f8627ed119">planners_</a>.empty())</div>
<divclass="line"><aid="l00454" name="l00454"></a><spanclass="lineno"> 454</span> {</div>
<divclass="line"><aid="l00455" name="l00455"></a><spanclass="lineno"> 455</span><aclass="code hl_define" href="group__logging.html#ga05ad3ae88188e7f248748785afd2b882">OMPL_ERROR</a>(<spanclass="stringliteral">"There are no planners to benchmark"</span>);</div>
<divclass="line"><aid="l00456" name="l00456"></a><spanclass="lineno"> 456</span><spanclass="keywordflow">return</span>;</div>
<divclass="line"><aid="l00457" name="l00457"></a><spanclass="lineno"> 457</span> }</div>
<divclass="line"><aid="l00458" name="l00458"></a><spanclass="lineno"> 458</span></div>
<divclass="line"><aid="l00459" name="l00459"></a><spanclass="lineno"> 459</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a28b6c76500d022dba4a8bc075bdcc5d2">status_</a>.running = <spanclass="keyword">true</span>;</div>
<divclass="line"><aid="l00460" name="l00460"></a><spanclass="lineno"> 460</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.totalDuration = 0.0;</div>
<divclass="line"><aid="l00461" name="l00461"></a><spanclass="lineno"> 461</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.maxTime = req.<aclass="code hl_variable" href="structompl_1_1tools_1_1Benchmark_1_1Request.html#ae29e119a2a3ca7d1325f701159a7636a">maxTime</a>;</div>
<divclass="line"><aid="l00462" name="l00462"></a><spanclass="lineno"> 462</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.maxMem = req.<aclass="code hl_variable" href="structompl_1_1tools_1_1Benchmark_1_1Request.html#a12b3d959f8e7349120cdd87ef21f72b8">maxMem</a>;</div>
<divclass="line"><aid="l00463" name="l00463"></a><spanclass="lineno"> 463</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.runCount = req.<aclass="code hl_variable" href="structompl_1_1tools_1_1Benchmark_1_1Request.html#a0252082e35f936c93c86eabf0d713e01">runCount</a>;</div>
<divclass="line"><aid="l00464" name="l00464"></a><spanclass="lineno"> 464</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.host = <aclass="code hl_function" href="namespaceompl_1_1machine.html#a72f733ca0ea9660e62e7d78887778494">machine::getHostname</a>();</div>
<divclass="line"><aid="l00465" name="l00465"></a><spanclass="lineno"> 465</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.cpuInfo = <aclass="code hl_function" href="namespaceompl_1_1machine.html#a75c4da4e42a1de9050a171213135fa26">machine::getCPUInfo</a>();</div>
<divclass="line"><aid="l00466" name="l00466"></a><spanclass="lineno"> 466</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.seed = <aclass="code hl_function" href="classompl_1_1RNG.html#a9b59291cc9599888d41a1b7a748aa5fe">RNG::getSeed</a>();</div>
<divclass="line"><aid="l00467" name="l00467"></a><spanclass="lineno"> 467</span></div>
<divclass="line"><aid="l00468" name="l00468"></a><spanclass="lineno"> 468</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.startTime = <aclass="code hl_function" href="namespaceompl_1_1time.html#a5da903c529cfbbce79900b7c1cbc6cc3">time::now</a>();</div>
<divclass="line"><aid="l00469" name="l00469"></a><spanclass="lineno"> 469</span></div>
<divclass="line"><aid="l00470" name="l00470"></a><spanclass="lineno"> 470</span><aclass="code hl_define" href="group__logging.html#ga04bc36d1b8c57ad7e13a8a48451a3a05">OMPL_INFORM</a>(<spanclass="stringliteral">"Configuring planners ..."</span>);</div>
<divclass="line"><aid="l00471" name="l00471"></a><spanclass="lineno"> 471</span></div>
<divclass="line"><aid="l00472" name="l00472"></a><spanclass="lineno"> 472</span><spanclass="comment">// clear previous experimental data</span></div>
<divclass="line"><aid="l00473" name="l00473"></a><spanclass="lineno"> 473</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.planners.clear();</div>
<divclass="line"><aid="l00474" name="l00474"></a><spanclass="lineno"> 474</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.planners.resize(<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a3e166b0c8a0e8c935ec5b5f8627ed119">planners_</a>.size());</div>
<divclass="line"><aid="l00475" name="l00475"></a><spanclass="lineno"> 475</span></div>
<divclass="line"><aid="l00476" name="l00476"></a><spanclass="lineno"> 476</span><spanclass="keyword">const</span> base::ProblemDefinitionPtr &pdef =</div>
<divclass="line"><aid="l00477" name="l00477"></a><spanclass="lineno"> 477</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a> ? <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a>->getProblemDefinition() : <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a74f68df4ca4750779c5a2d5ef202c27e">csetup_</a>->getProblemDefinition();</div>
<divclass="line"><aid="l00478" name="l00478"></a><spanclass="lineno"> 478</span><spanclass="comment">// set up all the planners</span></div>
<divclass="line"><aid="l00479" name="l00479"></a><spanclass="lineno"> 479</span><spanclass="keywordflow">for</span> (<spanclass="keywordtype">unsigned</span><spanclass="keywordtype">int</span> i = 0; i < <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a3e166b0c8a0e8c935ec5b5f8627ed119">planners_</a>.size(); ++i)</div>
<divclass="line"><aid="l00480" name="l00480"></a><spanclass="lineno"> 480</span> {</div>
<divclass="line"><aid="l00481" name="l00481"></a><spanclass="lineno"> 481</span><spanclass="comment">// configure the planner</span></div>
<divclass="line"><aid="l00482" name="l00482"></a><spanclass="lineno"> 482</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a3e166b0c8a0e8c935ec5b5f8627ed119">planners_</a>[i]->setProblemDefinition(pdef);</div>
<divclass="line"><aid="l00483" name="l00483"></a><spanclass="lineno"> 483</span><spanclass="keywordflow">if</span> (!<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a3e166b0c8a0e8c935ec5b5f8627ed119">planners_</a>[i]->isSetup())</div>
<divclass="line"><aid="l00484" name="l00484"></a><spanclass="lineno"> 484</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a3e166b0c8a0e8c935ec5b5f8627ed119">planners_</a>[i]->setup();</div>
<divclass="line"><aid="l00485" name="l00485"></a><spanclass="lineno"> 485</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.planners[i].name = (<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a> ? <spanclass="stringliteral">"geometric_"</span> : <spanclass="stringliteral">"control_"</span>) + <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a3e166b0c8a0e8c935ec5b5f8627ed119">planners_</a>[i]->getName();</div>
<divclass="line"><aid="l00486" name="l00486"></a><spanclass="lineno"> 486</span><aclass="code hl_define" href="group__logging.html#ga04bc36d1b8c57ad7e13a8a48451a3a05">OMPL_INFORM</a>(<spanclass="stringliteral">"Configured %s"</span>, <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.planners[i].name.c_str());</div>
<divclass="line"><aid="l00487" name="l00487"></a><spanclass="lineno"> 487</span> }</div>
<divclass="line"><aid="l00488" name="l00488"></a><spanclass="lineno"> 488</span></div>
<divclass="line"><aid="l00489" name="l00489"></a><spanclass="lineno"> 489</span><aclass="code hl_define" href="group__logging.html#ga04bc36d1b8c57ad7e13a8a48451a3a05">OMPL_INFORM</a>(<spanclass="stringliteral">"Done configuring planners."</span>);</div>
<divclass="line"><aid="l00490" name="l00490"></a><spanclass="lineno"> 490</span><aclass="code hl_define" href="group__logging.html#ga04bc36d1b8c57ad7e13a8a48451a3a05">OMPL_INFORM</a>(<spanclass="stringliteral">"Saving planner setup information ..."</span>);</div>
<divclass="line"><aid="l00491" name="l00491"></a><spanclass="lineno"> 491</span></div>
<divclass="line"><aid="l00492" name="l00492"></a><spanclass="lineno"> 492</span> std::stringstream setupInfo;</div>
<divclass="line"><aid="l00493" name="l00493"></a><spanclass="lineno"> 493</span><spanclass="keywordflow">if</span> (<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a>)</div>
<divclass="line"><aid="l00494" name="l00494"></a><spanclass="lineno"> 494</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a>->print(setupInfo);</div>
<divclass="line"><aid="l00495" name="l00495"></a><spanclass="lineno"> 495</span><spanclass="keywordflow">else</span></div>
<divclass="line"><aid="l00496" name="l00496"></a><spanclass="lineno"> 496</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a74f68df4ca4750779c5a2d5ef202c27e">csetup_</a>->print(setupInfo);</div>
<divclass="line"><aid="l00497" name="l00497"></a><spanclass="lineno"> 497</span> setupInfo << std::endl << <spanclass="stringliteral">"Properties of benchmarked planners:"</span> << std::endl;</div>
<divclass="line"><aid="l00498" name="l00498"></a><spanclass="lineno"> 498</span><spanclass="keywordflow">for</span> (<spanclass="keyword">auto</span> &planner : <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a3e166b0c8a0e8c935ec5b5f8627ed119">planners_</a>)</div>
<divclass="line"><aid="l00499" name="l00499"></a><spanclass="lineno"> 499</span> planner->printProperties(setupInfo);</div>
<divclass="line"><aid="l00500" name="l00500"></a><spanclass="lineno"> 500</span></div>
<divclass="line"><aid="l00501" name="l00501"></a><spanclass="lineno"> 501</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.setupInfo = setupInfo.str();</div>
<divclass="line"><aid="l00502" name="l00502"></a><spanclass="lineno"> 502</span></div>
<divclass="line"><aid="l00503" name="l00503"></a><spanclass="lineno"> 503</span><aclass="code hl_define" href="group__logging.html#ga04bc36d1b8c57ad7e13a8a48451a3a05">OMPL_INFORM</a>(<spanclass="stringliteral">"Done saving information"</span>);</div>
<divclass="line"><aid="l00504" name="l00504"></a><spanclass="lineno"> 504</span></div>
<divclass="line"><aid="l00505" name="l00505"></a><spanclass="lineno"> 505</span><aclass="code hl_define" href="group__logging.html#ga04bc36d1b8c57ad7e13a8a48451a3a05">OMPL_INFORM</a>(<spanclass="stringliteral">"Beginning benchmark"</span>);</div>
<divclass="line"><aid="l00506" name="l00506"></a><spanclass="lineno"> 506</span><aclass="code hl_class" href="classompl_1_1msg_1_1OutputHandler.html">msg::OutputHandler</a> *oh = <aclass="code hl_function" href="namespaceompl_1_1msg.html#a0e9a5d161592281f8caf01b0c8b2e746">msg::getOutputHandler</a>();</div>
<divclass="line"><aid="l00507" name="l00507"></a><spanclass="lineno"> 507</span> boost::scoped_ptr<msg::OutputHandlerFile> ohf;</div>
<divclass="line"><aid="l00508" name="l00508"></a><spanclass="lineno"> 508</span><spanclass="keywordflow">if</span> (req.<aclass="code hl_variable" href="structompl_1_1tools_1_1Benchmark_1_1Request.html#a882d384685f86176fbb441c256d34044">saveConsoleOutput</a>)</div>
<divclass="line"><aid="l00509" name="l00509"></a><spanclass="lineno"> 509</span> {</div>
<divclass="line"><aid="l00510" name="l00510"></a><spanclass="lineno"> 510</span> ohf.reset(<spanclass="keyword">new</span><aclass="code hl_class" href="classompl_1_1msg_1_1OutputHandlerFile.html">msg::OutputHandlerFile</a>(getConsoleFilename(<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>).c_str()));</div>
<divclass="line"><aid="l00511" name="l00511"></a><spanclass="lineno"> 511</span><aclass="code hl_function" href="namespaceompl_1_1msg.html#a66fd8fd39855d4166ff40164fe4d9d6b">msg::useOutputHandler</a>(ohf.get());</div>
<divclass="line"><aid="l00512" name="l00512"></a><spanclass="lineno"> 512</span> }</div>
<divclass="line"><aid="l00513" name="l00513"></a><spanclass="lineno"> 513</span><spanclass="keywordflow">else</span></div>
<divclass="line"><aid="l00514" name="l00514"></a><spanclass="lineno"> 514</span><aclass="code hl_function" href="namespaceompl_1_1msg.html#a83e28f524a5576a73bb062523bbdc53d">msg::noOutputHandler</a>();</div>
<divclass="line"><aid="l00515" name="l00515"></a><spanclass="lineno"> 515</span><aclass="code hl_define" href="group__logging.html#ga04bc36d1b8c57ad7e13a8a48451a3a05">OMPL_INFORM</a>(<spanclass="stringliteral">"Beginning benchmark"</span>);</div>
<divclass="line"><aid="l00516" name="l00516"></a><spanclass="lineno"> 516</span></div>
<divclass="line"><aid="l00517" name="l00517"></a><spanclass="lineno"> 517</span> boost::scoped_ptr<ompl::time::ProgressDisplay> progress;</div>
<divclass="line"><aid="l00518" name="l00518"></a><spanclass="lineno"> 518</span><spanclass="keywordflow">if</span> (req.<aclass="code hl_variable" href="structompl_1_1tools_1_1Benchmark_1_1Request.html#a0e63ef873358346cfb78a69121dfd2ec">displayProgress</a>)</div>
<divclass="line"><aid="l00519" name="l00519"></a><spanclass="lineno"> 519</span> {</div>
<divclass="line"><aid="l00520" name="l00520"></a><spanclass="lineno"> 520</span> std::cout << <spanclass="stringliteral">"Running experiment "</span> << <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.name << <spanclass="stringliteral">"."</span> << std::endl;</div>
<divclass="line"><aid="l00521" name="l00521"></a><spanclass="lineno"> 521</span><spanclass="keywordflow">if</span> (req.<aclass="code hl_variable" href="structompl_1_1tools_1_1Benchmark_1_1Request.html#a0252082e35f936c93c86eabf0d713e01">runCount</a>)</div>
<divclass="line"><aid="l00522" name="l00522"></a><spanclass="lineno"> 522</span> std::cout << <spanclass="stringliteral">"Each planner will be executed "</span> << req.<aclass="code hl_variable" href="structompl_1_1tools_1_1Benchmark_1_1Request.html#a0252082e35f936c93c86eabf0d713e01">runCount</a> << <spanclass="stringliteral">" times for at most "</span> << req.<aclass="code hl_variable" href="structompl_1_1tools_1_1Benchmark_1_1Request.html#ae29e119a2a3ca7d1325f701159a7636a">maxTime</a></div>
<divclass="line"><aid="l00523" name="l00523"></a><spanclass="lineno"> 523</span> << <spanclass="stringliteral">" seconds."</span>;</div>
<divclass="line"><aid="l00524" name="l00524"></a><spanclass="lineno"> 524</span><spanclass="keywordflow">else</span></div>
<divclass="line"><aid="l00525" name="l00525"></a><spanclass="lineno"> 525</span> std::cout << <spanclass="stringliteral">"Each planner will be executed as many times as possible within "</span> << req.<aclass="code hl_variable" href="structompl_1_1tools_1_1Benchmark_1_1Request.html#ae29e119a2a3ca7d1325f701159a7636a">maxTime</a></div>
<divclass="line"><aid="l00526" name="l00526"></a><spanclass="lineno"> 526</span> << <spanclass="stringliteral">" seconds."</span>;</div>
<divclass="line"><aid="l00527" name="l00527"></a><spanclass="lineno"> 527</span> std::cout << <spanclass="stringliteral">" Memory is limited at "</span> << req.<aclass="code hl_variable" href="structompl_1_1tools_1_1Benchmark_1_1Request.html#a12b3d959f8e7349120cdd87ef21f72b8">maxMem</a> << <spanclass="stringliteral">"MB."</span> << std::endl;</div>
<divclass="line"><aid="l00528" name="l00528"></a><spanclass="lineno"> 528</span> progress.reset(<spanclass="keyword">new</span><aclass="code hl_class" href="classompl_1_1time_1_1ProgressDisplay.html">ompl::time::ProgressDisplay</a>);</div>
<divclass="line"><aid="l00529" name="l00529"></a><spanclass="lineno"> 529</span> }</div>
<divclass="line"><aid="l00530" name="l00530"></a><spanclass="lineno"> 530</span></div>
<divclass="line"><aid="l00531" name="l00531"></a><spanclass="lineno"> 531</span><aclass="code hl_typedef" href="namespaceompl_1_1machine.html#af898d386f21d6c8311821bb4f87b5132">machine::MemUsage_t</a> memStart = <aclass="code hl_function" href="namespaceompl_1_1machine.html#a263d0e9d43cd9e10edb468b97f46a198">machine::getProcessMemoryUsage</a>();</div>
<divclass="line"><aid="l00532" name="l00532"></a><spanclass="lineno"> 532</span><spanclass="keyword">auto</span> maxMemBytes = (<aclass="code hl_typedef" href="namespaceompl_1_1machine.html#af898d386f21d6c8311821bb4f87b5132">machine::MemUsage_t</a>)(req.<aclass="code hl_variable" href="structompl_1_1tools_1_1Benchmark_1_1Request.html#a12b3d959f8e7349120cdd87ef21f72b8">maxMem</a> * 1024 * 1024);</div>
<divclass="line"><aid="l00533" name="l00533"></a><spanclass="lineno"> 533</span></div>
<divclass="line"><aid="l00534" name="l00534"></a><spanclass="lineno"> 534</span><spanclass="keywordflow">for</span> (<spanclass="keywordtype">unsigned</span><spanclass="keywordtype">int</span> i = 0; i < <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a3e166b0c8a0e8c935ec5b5f8627ed119">planners_</a>.size(); ++i)</div>
<divclass="line"><aid="l00535" name="l00535"></a><spanclass="lineno"> 535</span> {</div>
<divclass="line"><aid="l00536" name="l00536"></a><spanclass="lineno"> 536</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a28b6c76500d022dba4a8bc075bdcc5d2">status_</a>.activePlanner = <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.planners[i].name;</div>
<divclass="line"><aid="l00537" name="l00537"></a><spanclass="lineno"> 537</span><spanclass="comment">// execute planner switch event, if set</span></div>
<divclass="line"><aid="l00538" name="l00538"></a><spanclass="lineno"> 538</span><spanclass="keywordflow">try</span></div>
<divclass="line"><aid="l00539" name="l00539"></a><spanclass="lineno"> 539</span> {</div>
<divclass="line"><aid="l00540" name="l00540"></a><spanclass="lineno"> 540</span><spanclass="keywordflow">if</span> (<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a1bf6e6b434ae98d6d54808d5e65ded43">plannerSwitch_</a>)</div>
<divclass="line"><aid="l00541" name="l00541"></a><spanclass="lineno"> 541</span> {</div>
<divclass="line"><aid="l00542" name="l00542"></a><spanclass="lineno"> 542</span><aclass="code hl_define" href="group__logging.html#ga04bc36d1b8c57ad7e13a8a48451a3a05">OMPL_INFORM</a>(<spanclass="stringliteral">"Executing planner-switch event for planner %s ..."</span>, <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a28b6c76500d022dba4a8bc075bdcc5d2">status_</a>.activePlanner.c_str());</div>
<divclass="line"><aid="l00543" name="l00543"></a><spanclass="lineno"> 543</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a1bf6e6b434ae98d6d54808d5e65ded43">plannerSwitch_</a>(<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a3e166b0c8a0e8c935ec5b5f8627ed119">planners_</a>[i]);</div>
<divclass="line"><aid="l00544" name="l00544"></a><spanclass="lineno"> 544</span><aclass="code hl_define" href="group__logging.html#ga04bc36d1b8c57ad7e13a8a48451a3a05">OMPL_INFORM</a>(<spanclass="stringliteral">"Completed execution of planner-switch event"</span>);</div>
<divclass="line"><aid="l00545" name="l00545"></a><spanclass="lineno"> 545</span> }</div>
<divclass="line"><aid="l00546" name="l00546"></a><spanclass="lineno"> 546</span> }</div>
<divclass="line"><aid="l00547" name="l00547"></a><spanclass="lineno"> 547</span><spanclass="keywordflow">catch</span> (std::runtime_error &e)</div>
<divclass="line"><aid="l00548" name="l00548"></a><spanclass="lineno"> 548</span> {</div>
<divclass="line"><aid="l00549" name="l00549"></a><spanclass="lineno"> 549</span> std::stringstream es;</div>
<divclass="line"><aid="l00550" name="l00550"></a><spanclass="lineno"> 550</span> es << <spanclass="stringliteral">"There was an error executing the planner-switch event for planner "</span> << <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a28b6c76500d022dba4a8bc075bdcc5d2">status_</a>.activePlanner</div>
<divclass="line"><aid="l00551" name="l00551"></a><spanclass="lineno"> 551</span> << std::endl;</div>
<divclass="line"><aid="l00552" name="l00552"></a><spanclass="lineno"> 552</span> es << <spanclass="stringliteral">"*** "</span> << e.what() << std::endl;</div>
<divclass="line"><aid="l00553" name="l00553"></a><spanclass="lineno"> 553</span> std::cerr << es.str();</div>
<divclass="line"><aid="l00554" name="l00554"></a><spanclass="lineno"> 554</span><aclass="code hl_define" href="group__logging.html#ga05ad3ae88188e7f248748785afd2b882">OMPL_ERROR</a>(es.str().c_str());</div>
<divclass="line"><aid="l00555" name="l00555"></a><spanclass="lineno"> 555</span> }</div>
<divclass="line"><aid="l00556" name="l00556"></a><spanclass="lineno"> 556</span><spanclass="keywordflow">if</span> (<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a>)</div>
<divclass="line"><aid="l00557" name="l00557"></a><spanclass="lineno"> 557</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a>->setup();</div>
<divclass="line"><aid="l00558" name="l00558"></a><spanclass="lineno"> 558</span><spanclass="keywordflow">else</span></div>
<divclass="line"><aid="l00559" name="l00559"></a><spanclass="lineno"> 559</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a74f68df4ca4750779c5a2d5ef202c27e">csetup_</a>->setup();</div>
<divclass="line"><aid="l00560" name="l00560"></a><spanclass="lineno"> 560</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a3e166b0c8a0e8c935ec5b5f8627ed119">planners_</a>[i]->params().getParams(<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.planners[i].common);</div>
<divclass="line"><aid="l00561" name="l00561"></a><spanclass="lineno"> 561</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a3e166b0c8a0e8c935ec5b5f8627ed119">planners_</a>[i]->getSpaceInformation()->params().getParams(<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.planners[i].common);</div>
<divclass="line"><aid="l00562" name="l00562"></a><spanclass="lineno"> 562</span></div>
<divclass="line"><aid="l00563" name="l00563"></a><spanclass="lineno"> 563</span><spanclass="comment">// Add planner progress property names to struct</span></div>
<divclass="line"><aid="l00564" name="l00564"></a><spanclass="lineno"> 564</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.planners[i].progressPropertyNames.emplace_back(<spanclass="stringliteral">"time REAL"</span>);</div>
<divclass="line"><aid="l00565" name="l00565"></a><spanclass="lineno"> 565</span><spanclass="keywordflow">for</span> (<spanclass="keyword">const</span><spanclass="keyword">auto</span> &property : <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a3e166b0c8a0e8c935ec5b5f8627ed119">planners_</a>[i]->getPlannerProgressProperties())</div>
<divclass="line"><aid="l00566" name="l00566"></a><spanclass="lineno"> 566</span> {</div>
<divclass="line"><aid="l00567" name="l00567"></a><spanclass="lineno"> 567</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.planners[i].progressPropertyNames.push_back(property.first);</div>
<divclass="line"><aid="l00568" name="l00568"></a><spanclass="lineno"> 568</span> }</div>
<divclass="line"><aid="l00569" name="l00569"></a><spanclass="lineno"> 569</span> std::sort(<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.planners[i].progressPropertyNames.begin(), <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.planners[i].progressPropertyNames.end());</div>
<divclass="line"><aid="l00570" name="l00570"></a><spanclass="lineno"> 570</span></div>
<divclass="line"><aid="l00571" name="l00571"></a><spanclass="lineno"> 571</span><spanclass="comment">// run the planner</span></div>
<divclass="line"><aid="l00572" name="l00572"></a><spanclass="lineno"> 572</span><spanclass="keywordtype">double</span> maxTime = req.<aclass="code hl_variable" href="structompl_1_1tools_1_1Benchmark_1_1Request.html#ae29e119a2a3ca7d1325f701159a7636a">maxTime</a>;</div>
<divclass="line"><aid="l00573" name="l00573"></a><spanclass="lineno"> 573</span><spanclass="keywordtype">unsigned</span><spanclass="keywordtype">int</span> j = 0;</div>
<divclass="line"><aid="l00574" name="l00574"></a><spanclass="lineno"> 574</span><spanclass="keywordflow">while</span> (<spanclass="keyword">true</span>)</div>
<divclass="line"><aid="l00575" name="l00575"></a><spanclass="lineno"> 575</span> {</div>
<divclass="line"><aid="l00576" name="l00576"></a><spanclass="lineno"> 576</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a28b6c76500d022dba4a8bc075bdcc5d2">status_</a>.activeRun = j;</div>
<divclass="line"><aid="l00577" name="l00577"></a><spanclass="lineno"> 577</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a28b6c76500d022dba4a8bc075bdcc5d2">status_</a>.progressPercentage =</div>
<divclass="line"><aid="l00578" name="l00578"></a><spanclass="lineno"> 578</span> req.<aclass="code hl_variable" href="structompl_1_1tools_1_1Benchmark_1_1Request.html#a0252082e35f936c93c86eabf0d713e01">runCount</a> ? (double)(100 * (req.<aclass="code hl_variable" href="structompl_1_1tools_1_1Benchmark_1_1Request.html#a0252082e35f936c93c86eabf0d713e01">runCount</a> * i + j)) / (double)(<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a3e166b0c8a0e8c935ec5b5f8627ed119">planners_</a>.size() * req.<aclass="code hl_variable" href="structompl_1_1tools_1_1Benchmark_1_1Request.html#a0252082e35f936c93c86eabf0d713e01">runCount</a>) :</div>
<divclass="line"><aid="l00579" name="l00579"></a><spanclass="lineno"> 579</span> (double)(100 * i) / (double)(<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a3e166b0c8a0e8c935ec5b5f8627ed119">planners_</a>.size());</div>
<divclass="line"><aid="l00580" name="l00580"></a><spanclass="lineno"> 580</span></div>
<divclass="line"><aid="l00581" name="l00581"></a><spanclass="lineno"> 581</span><spanclass="keywordflow">if</span> (req.<aclass="code hl_variable" href="structompl_1_1tools_1_1Benchmark_1_1Request.html#a0e63ef873358346cfb78a69121dfd2ec">displayProgress</a>)</div>
<divclass="line"><aid="l00582" name="l00582"></a><spanclass="lineno"> 582</span><spanclass="keywordflow">while</span> (<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a28b6c76500d022dba4a8bc075bdcc5d2">status_</a>.progressPercentage > progress->count())</div>
<divclass="line"><aid="l00583" name="l00583"></a><spanclass="lineno"> 583</span> ++(*progress);</div>
<divclass="line"><aid="l00584" name="l00584"></a><spanclass="lineno"> 584</span></div>
<divclass="line"><aid="l00585" name="l00585"></a><spanclass="lineno"> 585</span><aclass="code hl_define" href="group__logging.html#ga04bc36d1b8c57ad7e13a8a48451a3a05">OMPL_INFORM</a>(<spanclass="stringliteral">"Preparing for run %d of %s"</span>, <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a28b6c76500d022dba4a8bc075bdcc5d2">status_</a>.activeRun, <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a28b6c76500d022dba4a8bc075bdcc5d2">status_</a>.activePlanner.c_str());</div>
<divclass="line"><aid="l00586" name="l00586"></a><spanclass="lineno"> 586</span></div>
<divclass="line"><aid="l00587" name="l00587"></a><spanclass="lineno"> 587</span><spanclass="comment">// make sure all planning data structures are cleared</span></div>
<divclass="line"><aid="l00588" name="l00588"></a><spanclass="lineno"> 588</span><spanclass="keywordflow">try</span></div>
<divclass="line"><aid="l00589" name="l00589"></a><spanclass="lineno"> 589</span> {</div>
<divclass="line"><aid="l00590" name="l00590"></a><spanclass="lineno"> 590</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a3e166b0c8a0e8c935ec5b5f8627ed119">planners_</a>[i]->clear();</div>
<divclass="line"><aid="l00591" name="l00591"></a><spanclass="lineno"> 591</span><spanclass="keywordflow">if</span> (<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a>)</div>
<divclass="line"><aid="l00592" name="l00592"></a><spanclass="lineno"> 592</span> {</div>
<divclass="line"><aid="l00593" name="l00593"></a><spanclass="lineno"> 593</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a>->getProblemDefinition()->clearSolutionPaths();</div>
<divclass="line"><aid="l00594" name="l00594"></a><spanclass="lineno"> 594</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a>->getSpaceInformation()->getMotionValidator()->resetMotionCounter();</div>
<divclass="line"><aid="l00595" name="l00595"></a><spanclass="lineno"> 595</span> }</div>
<divclass="line"><aid="l00596" name="l00596"></a><spanclass="lineno"> 596</span><spanclass="keywordflow">else</span></div>
<divclass="line"><aid="l00597" name="l00597"></a><spanclass="lineno"> 597</span> {</div>
<divclass="line"><aid="l00598" name="l00598"></a><spanclass="lineno"> 598</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a74f68df4ca4750779c5a2d5ef202c27e">csetup_</a>->getProblemDefinition()->clearSolutionPaths();</div>
<divclass="line"><aid="l00599" name="l00599"></a><spanclass="lineno"> 599</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a74f68df4ca4750779c5a2d5ef202c27e">csetup_</a>->getSpaceInformation()->getMotionValidator()->resetMotionCounter();</div>
<divclass="line"><aid="l00600" name="l00600"></a><spanclass="lineno"> 600</span> }</div>
<divclass="line"><aid="l00601" name="l00601"></a><spanclass="lineno"> 601</span> }</div>
<divclass="line"><aid="l00602" name="l00602"></a><spanclass="lineno"> 602</span><spanclass="keywordflow">catch</span> (std::runtime_error &e)</div>
<divclass="line"><aid="l00603" name="l00603"></a><spanclass="lineno"> 603</span> {</div>
<divclass="line"><aid="l00604" name="l00604"></a><spanclass="lineno"> 604</span> std::stringstream es;</div>
<divclass="line"><aid="l00605" name="l00605"></a><spanclass="lineno"> 605</span> es << <spanclass="stringliteral">"There was an error while preparing for run "</span> << <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a28b6c76500d022dba4a8bc075bdcc5d2">status_</a>.activeRun << <spanclass="stringliteral">" of planner "</span></div>
<divclass="line"><aid="l00606" name="l00606"></a><spanclass="lineno"> 606</span> << <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a28b6c76500d022dba4a8bc075bdcc5d2">status_</a>.activePlanner << std::endl;</div>
<divclass="line"><aid="l00607" name="l00607"></a><spanclass="lineno"> 607</span> es << <spanclass="stringliteral">"*** "</span> << e.what() << std::endl;</div>
<divclass="line"><aid="l00608" name="l00608"></a><spanclass="lineno"> 608</span> std::cerr << es.str();</div>
<divclass="line"><aid="l00609" name="l00609"></a><spanclass="lineno"> 609</span><aclass="code hl_define" href="group__logging.html#ga05ad3ae88188e7f248748785afd2b882">OMPL_ERROR</a>(es.str().c_str());</div>
<divclass="line"><aid="l00610" name="l00610"></a><spanclass="lineno"> 610</span> }</div>
<divclass="line"><aid="l00611" name="l00611"></a><spanclass="lineno"> 611</span></div>
<divclass="line"><aid="l00612" name="l00612"></a><spanclass="lineno"> 612</span><spanclass="comment">// execute pre-run event, if set</span></div>
<divclass="line"><aid="l00613" name="l00613"></a><spanclass="lineno"> 613</span><spanclass="keywordflow">try</span></div>
<divclass="line"><aid="l00614" name="l00614"></a><spanclass="lineno"> 614</span> {</div>
<divclass="line"><aid="l00615" name="l00615"></a><spanclass="lineno"> 615</span><spanclass="keywordflow">if</span> (<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#ab3b2565d2fb0362bff5fbdd0d0080159">preRun_</a>)</div>
<divclass="line"><aid="l00616" name="l00616"></a><spanclass="lineno"> 616</span> {</div>
<divclass="line"><aid="l00617" name="l00617"></a><spanclass="lineno"> 617</span><aclass="code hl_define" href="group__logging.html#ga04bc36d1b8c57ad7e13a8a48451a3a05">OMPL_INFORM</a>(<spanclass="stringliteral">"Executing pre-run event for run %d of planner %s ..."</span>, <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a28b6c76500d022dba4a8bc075bdcc5d2">status_</a>.activeRun,</div>
<divclass="line"><aid="l00618" name="l00618"></a><spanclass="lineno"> 618</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a28b6c76500d022dba4a8bc075bdcc5d2">status_</a>.activePlanner.c_str());</div>
<divclass="line"><aid="l00619" name="l00619"></a><spanclass="lineno"> 619</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#ab3b2565d2fb0362bff5fbdd0d0080159">preRun_</a>(<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a3e166b0c8a0e8c935ec5b5f8627ed119">planners_</a>[i]);</div>
<divclass="line"><aid="l00620" name="l00620"></a><spanclass="lineno"> 620</span><aclass="code hl_define" href="group__logging.html#ga04bc36d1b8c57ad7e13a8a48451a3a05">OMPL_INFORM</a>(<spanclass="stringliteral">"Completed execution of pre-run event"</span>);</div>
<divclass="line"><aid="l00621" name="l00621"></a><spanclass="lineno"> 621</span> }</div>
<divclass="line"><aid="l00622" name="l00622"></a><spanclass="lineno"> 622</span> }</div>
<divclass="line"><aid="l00623" name="l00623"></a><spanclass="lineno"> 623</span><spanclass="keywordflow">catch</span> (std::runtime_error &e)</div>
<divclass="line"><aid="l00624" name="l00624"></a><spanclass="lineno"> 624</span> {</div>
<divclass="line"><aid="l00625" name="l00625"></a><spanclass="lineno"> 625</span> std::stringstream es;</div>
<divclass="line"><aid="l00626" name="l00626"></a><spanclass="lineno"> 626</span> es << <spanclass="stringliteral">"There was an error executing the pre-run event for run "</span> << <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a28b6c76500d022dba4a8bc075bdcc5d2">status_</a>.activeRun << <spanclass="stringliteral">" of planner "</span></div>
<divclass="line"><aid="l00627" name="l00627"></a><spanclass="lineno"> 627</span> << <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a28b6c76500d022dba4a8bc075bdcc5d2">status_</a>.activePlanner << std::endl;</div>
<divclass="line"><aid="l00628" name="l00628"></a><spanclass="lineno"> 628</span> es << <spanclass="stringliteral">"*** "</span> << e.what() << std::endl;</div>
<divclass="line"><aid="l00629" name="l00629"></a><spanclass="lineno"> 629</span> std::cerr << es.str();</div>
<divclass="line"><aid="l00630" name="l00630"></a><spanclass="lineno"> 630</span><aclass="code hl_define" href="group__logging.html#ga05ad3ae88188e7f248748785afd2b882">OMPL_ERROR</a>(es.str().c_str());</div>
<divclass="line"><aid="l00631" name="l00631"></a><spanclass="lineno"> 631</span> }</div>
<divclass="line"><aid="l00632" name="l00632"></a><spanclass="lineno"> 632</span></div>
<divclass="line"><aid="l00633" name="l00633"></a><spanclass="lineno"> 633</span> RunPlanner rp(<spanclass="keyword">this</span>);</div>
<divclass="line"><aid="l00634" name="l00634"></a><spanclass="lineno"> 634</span> rp.run(<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a3e166b0c8a0e8c935ec5b5f8627ed119">planners_</a>[i], memStart, maxMemBytes, maxTime, req.<aclass="code hl_variable" href="structompl_1_1tools_1_1Benchmark_1_1Request.html#a7f308d71127840e12c6fedfe2668d652">timeBetweenUpdates</a>);</div>
<divclass="line"><aid="l00635" name="l00635"></a><spanclass="lineno"> 635</span><spanclass="keywordtype">bool</span> solved = <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a> ? <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a>->haveSolutionPath() : <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a74f68df4ca4750779c5a2d5ef202c27e">csetup_</a>->haveSolutionPath();</div>
<divclass="line"><aid="l00636" name="l00636"></a><spanclass="lineno"> 636</span></div>
<divclass="line"><aid="l00637" name="l00637"></a><spanclass="lineno"> 637</span><spanclass="comment">// store results</span></div>
<divclass="line"><aid="l00638" name="l00638"></a><spanclass="lineno"> 638</span><spanclass="keywordflow">try</span></div>
<divclass="line"><aid="l00639" name="l00639"></a><spanclass="lineno"> 639</span> {</div>
<divclass="line"><aid="l00640" name="l00640"></a><spanclass="lineno"> 640</span><aclass="code hl_struct" href="structompl_1_1tools_1_1Benchmark_1_1RunProperties.html">RunProperties</a> run;</div>
<divclass="line"><aid="l00641" name="l00641"></a><spanclass="lineno"> 641</span></div>
<divclass="line"><aid="l00642" name="l00642"></a><spanclass="lineno"> 642</span> run[<spanclass="stringliteral">"time REAL"</span>] = <aclass="code hl_function" href="namespaceompl.html#a6e6c38ce80fbb8f10d826bb19b64735a">ompl::toString</a>(rp.getTimeUsed());</div>
<divclass="line"><aid="l00643" name="l00643"></a><spanclass="lineno"> 643</span> run[<spanclass="stringliteral">"memory REAL"</span>] = <aclass="code hl_function" href="namespaceompl.html#a6e6c38ce80fbb8f10d826bb19b64735a">ompl::toString</a>((<spanclass="keywordtype">double</span>)rp.getMemUsed() / (1024.0 * 1024.0));</div>
<divclass="line"><aid="l00644" name="l00644"></a><spanclass="lineno"> 644</span> run[<spanclass="stringliteral">"status ENUM"</span>] = std::to_string((<spanclass="keywordtype">int</span>)<spanclass="keyword">static_cast<</span><aclass="code hl_enumeration" href="structompl_1_1base_1_1PlannerStatus.html#a5fe3825813b066b664b3dd34dd1bc8c4">base::PlannerStatus::StatusType</a><spanclass="keyword">></span>(rp.getStatus()));</div>
<divclass="line"><aid="l00645" name="l00645"></a><spanclass="lineno"> 645</span><spanclass="keywordflow">if</span> (<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a>)</div>
<divclass="line"><aid="l00646" name="l00646"></a><spanclass="lineno"> 646</span> {</div>
<divclass="line"><aid="l00647" name="l00647"></a><spanclass="lineno"> 647</span> run[<spanclass="stringliteral">"solved BOOLEAN"</span>] = std::to_string(<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a>->haveExactSolutionPath());</div>
<divclass="line"><aid="l00648" name="l00648"></a><spanclass="lineno"> 648</span> run[<spanclass="stringliteral">"valid segment fraction REAL"</span>] =</div>
<divclass="line"><aid="l00649" name="l00649"></a><spanclass="lineno"> 649</span><aclass="code hl_function" href="namespaceompl.html#a6e6c38ce80fbb8f10d826bb19b64735a">ompl::toString</a>(<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a>->getSpaceInformation()->getMotionValidator()->getValidMotionFraction());</div>
<divclass="line"><aid="l00650" name="l00650"></a><spanclass="lineno"> 650</span> }</div>
<divclass="line"><aid="l00651" name="l00651"></a><spanclass="lineno"> 651</span><spanclass="keywordflow">else</span></div>
<divclass="line"><aid="l00652" name="l00652"></a><spanclass="lineno"> 652</span> {</div>
<divclass="line"><aid="l00653" name="l00653"></a><spanclass="lineno"> 653</span> run[<spanclass="stringliteral">"solved BOOLEAN"</span>] = std::to_string(<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a74f68df4ca4750779c5a2d5ef202c27e">csetup_</a>->haveExactSolutionPath());</div>
<divclass="line"><aid="l00654" name="l00654"></a><spanclass="lineno"> 654</span> run[<spanclass="stringliteral">"valid segment fraction REAL"</span>] =</div>
<divclass="line"><aid="l00655" name="l00655"></a><spanclass="lineno"> 655</span><aclass="code hl_function" href="namespaceompl.html#a6e6c38ce80fbb8f10d826bb19b64735a">ompl::toString</a>(<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a74f68df4ca4750779c5a2d5ef202c27e">csetup_</a>->getSpaceInformation()->getMotionValidator()->getValidMotionFraction());</div>
<divclass="line"><aid="l00656" name="l00656"></a><spanclass="lineno"> 656</span> }</div>
<divclass="line"><aid="l00657" name="l00657"></a><spanclass="lineno"> 657</span></div>
<divclass="line"><aid="l00658" name="l00658"></a><spanclass="lineno"> 658</span><spanclass="keywordflow">if</span> (solved)</div>
<divclass="line"><aid="l00659" name="l00659"></a><spanclass="lineno"> 659</span> {</div>
<divclass="line"><aid="l00660" name="l00660"></a><spanclass="lineno"> 660</span><spanclass="keywordflow">if</span> (<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a>)</div>
<divclass="line"><aid="l00661" name="l00661"></a><spanclass="lineno"> 661</span> {</div>
<divclass="line"><aid="l00662" name="l00662"></a><spanclass="lineno"> 662</span> run[<spanclass="stringliteral">"approximate solution BOOLEAN"</span>] =</div>
<divclass="line"><aid="l00663" name="l00663"></a><spanclass="lineno"> 663</span> std::to_string(<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a>->getProblemDefinition()->hasApproximateSolution());</div>
<divclass="line"><aid="l00664" name="l00664"></a><spanclass="lineno"> 664</span> run[<spanclass="stringliteral">"solution difference REAL"</span>] =</div>
<divclass="line"><aid="l00665" name="l00665"></a><spanclass="lineno"> 665</span><aclass="code hl_function" href="namespaceompl.html#a6e6c38ce80fbb8f10d826bb19b64735a">ompl::toString</a>(<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a>->getProblemDefinition()->getSolutionDifference());</div>
<divclass="line"><aid="l00666" name="l00666"></a><spanclass="lineno"> 666</span> run[<spanclass="stringliteral">"solution length REAL"</span>] = <aclass="code hl_function" href="namespaceompl.html#a6e6c38ce80fbb8f10d826bb19b64735a">ompl::toString</a>(<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a>->getSolutionPath().length());</div>
<divclass="line"><aid="l00667" name="l00667"></a><spanclass="lineno"> 667</span> run[<spanclass="stringliteral">"solution smoothness REAL"</span>] = <aclass="code hl_function" href="namespaceompl.html#a6e6c38ce80fbb8f10d826bb19b64735a">ompl::toString</a>(<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a>->getSolutionPath().smoothness());</div>
<divclass="line"><aid="l00668" name="l00668"></a><spanclass="lineno"> 668</span> run[<spanclass="stringliteral">"solution clearance REAL"</span>] = <aclass="code hl_function" href="namespaceompl.html#a6e6c38ce80fbb8f10d826bb19b64735a">ompl::toString</a>(<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a>->getSolutionPath().clearance());</div>
<divclass="line"><aid="l00669" name="l00669"></a><spanclass="lineno"> 669</span> run[<spanclass="stringliteral">"solution segments INTEGER"</span>] =</div>
<divclass="line"><aid="l00670" name="l00670"></a><spanclass="lineno"> 670</span> std::to_string(<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a>->getSolutionPath().getStateCount() - 1);</div>
<divclass="line"><aid="l00671" name="l00671"></a><spanclass="lineno"> 671</span> run[<spanclass="stringliteral">"correct solution BOOLEAN"</span>] = std::to_string(<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a>->getSolutionPath().check());</div>
<divclass="line"><aid="l00672" name="l00672"></a><spanclass="lineno"> 672</span></div>
<divclass="line"><aid="l00673" name="l00673"></a><spanclass="lineno"> 673</span><spanclass="keywordtype">unsigned</span><spanclass="keywordtype">int</span> factor = <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a>->getStateSpace()->getValidSegmentCountFactor();</div>
<divclass="line"><aid="l00674" name="l00674"></a><spanclass="lineno"> 674</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a>->getStateSpace()->setValidSegmentCountFactor(factor * 4);</div>
<divclass="line"><aid="l00675" name="l00675"></a><spanclass="lineno"> 675</span> run[<spanclass="stringliteral">"correct solution strict BOOLEAN"</span>] = std::to_string(<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a>->getSolutionPath().check());</div>
<divclass="line"><aid="l00676" name="l00676"></a><spanclass="lineno"> 676</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a>->getStateSpace()->setValidSegmentCountFactor(factor);</div>
<divclass="line"><aid="l00677" name="l00677"></a><spanclass="lineno"> 677</span></div>
<divclass="line"><aid="l00678" name="l00678"></a><spanclass="lineno"> 678</span><spanclass="keywordflow">if</span> (req.<aclass="code hl_variable" href="structompl_1_1tools_1_1Benchmark_1_1Request.html#af7c98e06da0e8b8181a5feec8b57ac6d">simplify</a>)</div>
<divclass="line"><aid="l00679" name="l00679"></a><spanclass="lineno"> 679</span> {</div>
<divclass="line"><aid="l00680" name="l00680"></a><spanclass="lineno"> 680</span><spanclass="comment">// simplify solution</span></div>
<divclass="line"><aid="l00681" name="l00681"></a><spanclass="lineno"> 681</span><aclass="code hl_typedef" href="namespaceompl_1_1time.html#a217fd988fc9b3192af36c37613d51a39">time::point</a> timeStart = <aclass="code hl_function" href="namespaceompl_1_1time.html#a5da903c529cfbbce79900b7c1cbc6cc3">time::now</a>();</div>
<divclass="line"><aid="l00682" name="l00682"></a><spanclass="lineno"> 682</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a>->simplifySolution();</div>
<divclass="line"><aid="l00683" name="l00683"></a><spanclass="lineno"> 683</span><spanclass="keywordtype">double</span> timeUsed = <aclass="code hl_function" href="namespaceompl_1_1time.html#acac374ab4374adb207edb38cedb7fbb1">time::seconds</a>(<aclass="code hl_function" href="namespaceompl_1_1time.html#a5da903c529cfbbce79900b7c1cbc6cc3">time::now</a>() - timeStart);</div>
<divclass="line"><aid="l00684" name="l00684"></a><spanclass="lineno"> 684</span> run[<spanclass="stringliteral">"simplification time REAL"</span>] = <aclass="code hl_function" href="namespaceompl.html#a6e6c38ce80fbb8f10d826bb19b64735a">ompl::toString</a>(timeUsed);</div>
<divclass="line"><aid="l00685" name="l00685"></a><spanclass="lineno"> 685</span> run[<spanclass="stringliteral">"simplified solution length REAL"</span>] =</div>
<divclass="line"><aid="l00686" name="l00686"></a><spanclass="lineno"> 686</span><aclass="code hl_function" href="namespaceompl.html#a6e6c38ce80fbb8f10d826bb19b64735a">ompl::toString</a>(<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a>->getSolutionPath().length());</div>
<divclass="line"><aid="l00687" name="l00687"></a><spanclass="lineno"> 687</span> run[<spanclass="stringliteral">"simplified solution smoothness REAL"</span>] =</div>
<divclass="line"><aid="l00688" name="l00688"></a><spanclass="lineno"> 688</span><aclass="code hl_function" href="namespaceompl.html#a6e6c38ce80fbb8f10d826bb19b64735a">ompl::toString</a>(<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a>->getSolutionPath().smoothness());</div>
<divclass="line"><aid="l00689" name="l00689"></a><spanclass="lineno"> 689</span> run[<spanclass="stringliteral">"simplified solution clearance REAL"</span>] =</div>
<divclass="line"><aid="l00690" name="l00690"></a><spanclass="lineno"> 690</span><aclass="code hl_function" href="namespaceompl.html#a6e6c38ce80fbb8f10d826bb19b64735a">ompl::toString</a>(<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a>->getSolutionPath().clearance());</div>
<divclass="line"><aid="l00691" name="l00691"></a><spanclass="lineno"> 691</span> run[<spanclass="stringliteral">"simplified solution segments INTEGER"</span>] =</div>
<divclass="line"><aid="l00692" name="l00692"></a><spanclass="lineno"> 692</span> std::to_string(<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a>->getSolutionPath().getStateCount() - 1);</div>
<divclass="line"><aid="l00693" name="l00693"></a><spanclass="lineno"> 693</span> run[<spanclass="stringliteral">"simplified correct solution BOOLEAN"</span>] =</div>
<divclass="line"><aid="l00694" name="l00694"></a><spanclass="lineno"> 694</span> std::to_string(<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a>->getSolutionPath().check());</div>
<divclass="line"><aid="l00695" name="l00695"></a><spanclass="lineno"> 695</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a>->getStateSpace()->setValidSegmentCountFactor(factor * 4);</div>
<divclass="line"><aid="l00696" name="l00696"></a><spanclass="lineno"> 696</span> run[<spanclass="stringliteral">"simplified correct solution strict BOOLEAN"</span>] =</div>
<divclass="line"><aid="l00697" name="l00697"></a><spanclass="lineno"> 697</span> std::to_string(<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a>->getSolutionPath().check());</div>
<divclass="line"><aid="l00698" name="l00698"></a><spanclass="lineno"> 698</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a>->getStateSpace()->setValidSegmentCountFactor(factor);</div>
<divclass="line"><aid="l00699" name="l00699"></a><spanclass="lineno"> 699</span> }</div>
<divclass="line"><aid="l00700" name="l00700"></a><spanclass="lineno"> 700</span> }</div>
<divclass="line"><aid="l00701" name="l00701"></a><spanclass="lineno"> 701</span><spanclass="keywordflow">else</span></div>
<divclass="line"><aid="l00702" name="l00702"></a><spanclass="lineno"> 702</span> {</div>
<divclass="line"><aid="l00703" name="l00703"></a><spanclass="lineno"> 703</span> run[<spanclass="stringliteral">"approximate solution BOOLEAN"</span>] =</div>
<divclass="line"><aid="l00704" name="l00704"></a><spanclass="lineno"> 704</span> std::to_string(<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a74f68df4ca4750779c5a2d5ef202c27e">csetup_</a>->getProblemDefinition()->hasApproximateSolution());</div>
<divclass="line"><aid="l00705" name="l00705"></a><spanclass="lineno"> 705</span> run[<spanclass="stringliteral">"solution difference REAL"</span>] =</div>
<divclass="line"><aid="l00706" name="l00706"></a><spanclass="lineno"> 706</span><aclass="code hl_function" href="namespaceompl.html#a6e6c38ce80fbb8f10d826bb19b64735a">ompl::toString</a>(<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a74f68df4ca4750779c5a2d5ef202c27e">csetup_</a>->getProblemDefinition()->getSolutionDifference());</div>
<divclass="line"><aid="l00707" name="l00707"></a><spanclass="lineno"> 707</span> run[<spanclass="stringliteral">"solution length REAL"</span>] = <aclass="code hl_function" href="namespaceompl.html#a6e6c38ce80fbb8f10d826bb19b64735a">ompl::toString</a>(<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a74f68df4ca4750779c5a2d5ef202c27e">csetup_</a>->getSolutionPath().length());</div>
<divclass="line"><aid="l00708" name="l00708"></a><spanclass="lineno"> 708</span> run[<spanclass="stringliteral">"solution clearance REAL"</span>] =</div>
<divclass="line"><aid="l00709" name="l00709"></a><spanclass="lineno"> 709</span><aclass="code hl_function" href="namespaceompl.html#a6e6c38ce80fbb8f10d826bb19b64735a">ompl::toString</a>(<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a74f68df4ca4750779c5a2d5ef202c27e">csetup_</a>->getSolutionPath().asGeometric().clearance());</div>
<divclass="line"><aid="l00710" name="l00710"></a><spanclass="lineno"> 710</span> run[<spanclass="stringliteral">"solution segments INTEGER"</span>] = std::to_string(<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a74f68df4ca4750779c5a2d5ef202c27e">csetup_</a>->getSolutionPath().getControlCount());</div>
<divclass="line"><aid="l00711" name="l00711"></a><spanclass="lineno"> 711</span> run[<spanclass="stringliteral">"correct solution BOOLEAN"</span>] = std::to_string(<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a74f68df4ca4750779c5a2d5ef202c27e">csetup_</a>->getSolutionPath().check());</div>
<divclass="line"><aid="l00712" name="l00712"></a><spanclass="lineno"> 712</span> }</div>
<divclass="line"><aid="l00713" name="l00713"></a><spanclass="lineno"> 713</span> }</div>
<divclass="line"><aid="l00714" name="l00714"></a><spanclass="lineno"> 714</span></div>
<divclass="line"><aid="l00715" name="l00715"></a><spanclass="lineno"> 715</span><aclass="code hl_class" href="classompl_1_1base_1_1PlannerData.html">base::PlannerData</a> pd(<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a> ? <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">gsetup_</a>->getSpaceInformation() : <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a74f68df4ca4750779c5a2d5ef202c27e">csetup_</a>->getSpaceInformation());</div>
<divclass="line"><aid="l00716" name="l00716"></a><spanclass="lineno"> 716</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a3e166b0c8a0e8c935ec5b5f8627ed119">planners_</a>[i]->getPlannerData(pd);</div>
<divclass="line"><aid="l00717" name="l00717"></a><spanclass="lineno"> 717</span> run[<spanclass="stringliteral">"graph states INTEGER"</span>] = std::to_string(pd.<aclass="code hl_function" href="classompl_1_1base_1_1PlannerData.html#a877a673801134168cba0581b277cae79">numVertices</a>());</div>
<divclass="line"><aid="l00718" name="l00718"></a><spanclass="lineno"> 718</span> run[<spanclass="stringliteral">"graph motions INTEGER"</span>] = std::to_string(pd.<aclass="code hl_function" href="classompl_1_1base_1_1PlannerData.html#a383876c22dd92deeed0a536c10f7ecd4">numEdges</a>());</div>
<divclass="line"><aid="l00719" name="l00719"></a><spanclass="lineno"> 719</span></div>
<divclass="line"><aid="l00720" name="l00720"></a><spanclass="lineno"> 720</span><spanclass="keywordflow">for</span> (<spanclass="keyword">const</span><spanclass="keyword">auto</span> &prop : pd.<aclass="code hl_variable" href="classompl_1_1base_1_1PlannerData.html#aca9e2da9d9a46e42c516fc8b926ab65c">properties</a>)</div>
<divclass="line"><aid="l00721" name="l00721"></a><spanclass="lineno"> 721</span> run[prop.first] = prop.second;</div>
<divclass="line"><aid="l00722" name="l00722"></a><spanclass="lineno"> 722</span></div>
<divclass="line"><aid="l00723" name="l00723"></a><spanclass="lineno"> 723</span><spanclass="comment">// execute post-run event, if set</span></div>
<divclass="line"><aid="l00724" name="l00724"></a><spanclass="lineno"> 724</span><spanclass="keywordflow">try</span></div>
<divclass="line"><aid="l00725" name="l00725"></a><spanclass="lineno"> 725</span> {</div>
<divclass="line"><aid="l00726" name="l00726"></a><spanclass="lineno"> 726</span><spanclass="keywordflow">if</span> (<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a48b0e489b98ae6d5801f730467430bc1">postRun_</a>)</div>
<divclass="line"><aid="l00727" name="l00727"></a><spanclass="lineno"> 727</span> {</div>
<divclass="line"><aid="l00728" name="l00728"></a><spanclass="lineno"> 728</span><aclass="code hl_define" href="group__logging.html#ga04bc36d1b8c57ad7e13a8a48451a3a05">OMPL_INFORM</a>(<spanclass="stringliteral">"Executing post-run event for run %d of planner %s ..."</span>, <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a28b6c76500d022dba4a8bc075bdcc5d2">status_</a>.activeRun,</div>
<divclass="line"><aid="l00729" name="l00729"></a><spanclass="lineno"> 729</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a28b6c76500d022dba4a8bc075bdcc5d2">status_</a>.activePlanner.c_str());</div>
<divclass="line"><aid="l00730" name="l00730"></a><spanclass="lineno"> 730</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a48b0e489b98ae6d5801f730467430bc1">postRun_</a>(<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a3e166b0c8a0e8c935ec5b5f8627ed119">planners_</a>[i], run);</div>
<divclass="line"><aid="l00731" name="l00731"></a><spanclass="lineno"> 731</span><aclass="code hl_define" href="group__logging.html#ga04bc36d1b8c57ad7e13a8a48451a3a05">OMPL_INFORM</a>(<spanclass="stringliteral">"Completed execution of post-run event"</span>);</div>
<divclass="line"><aid="l00732" name="l00732"></a><spanclass="lineno"> 732</span> }</div>
<divclass="line"><aid="l00733" name="l00733"></a><spanclass="lineno"> 733</span> }</div>
<divclass="line"><aid="l00734" name="l00734"></a><spanclass="lineno"> 734</span><spanclass="keywordflow">catch</span> (std::runtime_error &e)</div>
<divclass="line"><aid="l00735" name="l00735"></a><spanclass="lineno"> 735</span> {</div>
<divclass="line"><aid="l00736" name="l00736"></a><spanclass="lineno"> 736</span> std::stringstream es;</div>
<divclass="line"><aid="l00737" name="l00737"></a><spanclass="lineno"> 737</span> es << <spanclass="stringliteral">"There was an error in the execution of the post-run event for run "</span> << <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a28b6c76500d022dba4a8bc075bdcc5d2">status_</a>.activeRun</div>
<divclass="line"><aid="l00738" name="l00738"></a><spanclass="lineno"> 738</span> << <spanclass="stringliteral">" of planner "</span> << <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a28b6c76500d022dba4a8bc075bdcc5d2">status_</a>.activePlanner << std::endl;</div>
<divclass="line"><aid="l00739" name="l00739"></a><spanclass="lineno"> 739</span> es << <spanclass="stringliteral">"*** "</span> << e.what() << std::endl;</div>
<divclass="line"><aid="l00740" name="l00740"></a><spanclass="lineno"> 740</span> std::cerr << es.str();</div>
<divclass="line"><aid="l00741" name="l00741"></a><spanclass="lineno"> 741</span><aclass="code hl_define" href="group__logging.html#ga05ad3ae88188e7f248748785afd2b882">OMPL_ERROR</a>(es.str().c_str());</div>
<divclass="line"><aid="l00742" name="l00742"></a><spanclass="lineno"> 742</span> }</div>
<divclass="line"><aid="l00743" name="l00743"></a><spanclass="lineno"> 743</span></div>
<divclass="line"><aid="l00744" name="l00744"></a><spanclass="lineno"> 744</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.planners[i].runs.push_back(run);</div>
<divclass="line"><aid="l00745" name="l00745"></a><spanclass="lineno"> 745</span></div>
<divclass="line"><aid="l00746" name="l00746"></a><spanclass="lineno"> 746</span><spanclass="comment">// Add planner progress data from the planner progress</span></div>
<divclass="line"><aid="l00747" name="l00747"></a><spanclass="lineno"> 747</span><spanclass="comment">// collector if there was anything to report</span></div>
<divclass="line"><aid="l00748" name="l00748"></a><spanclass="lineno"> 748</span><spanclass="keywordflow">if</span> (<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a3e166b0c8a0e8c935ec5b5f8627ed119">planners_</a>[i]->getPlannerProgressProperties().size() > 0)</div>
<divclass="line"><aid="l00749" name="l00749"></a><spanclass="lineno"> 749</span> {</div>
<divclass="line"><aid="l00750" name="l00750"></a><spanclass="lineno"> 750</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.planners[i].runsProgressData.push_back(rp.getRunProgressData());</div>
<divclass="line"><aid="l00751" name="l00751"></a><spanclass="lineno"> 751</span> }</div>
<divclass="line"><aid="l00752" name="l00752"></a><spanclass="lineno"> 752</span> }</div>
<divclass="line"><aid="l00753" name="l00753"></a><spanclass="lineno"> 753</span><spanclass="keywordflow">catch</span> (std::runtime_error &e)</div>
<divclass="line"><aid="l00754" name="l00754"></a><spanclass="lineno"> 754</span> {</div>
<divclass="line"><aid="l00755" name="l00755"></a><spanclass="lineno"> 755</span> std::stringstream es;</div>
<divclass="line"><aid="l00756" name="l00756"></a><spanclass="lineno"> 756</span> es << <spanclass="stringliteral">"There was an error in the extraction of planner results: planner = "</span> << <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a28b6c76500d022dba4a8bc075bdcc5d2">status_</a>.activePlanner</div>
<divclass="line"><aid="l00757" name="l00757"></a><spanclass="lineno"> 757</span> << <spanclass="stringliteral">", run = "</span> << <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a28b6c76500d022dba4a8bc075bdcc5d2">status_</a>.activePlanner << std::endl;</div>
<divclass="line"><aid="l00758" name="l00758"></a><spanclass="lineno"> 758</span> es << <spanclass="stringliteral">"*** "</span> << e.what() << std::endl;</div>
<divclass="line"><aid="l00759" name="l00759"></a><spanclass="lineno"> 759</span> std::cerr << es.str();</div>
<divclass="line"><aid="l00760" name="l00760"></a><spanclass="lineno"> 760</span><aclass="code hl_define" href="group__logging.html#ga05ad3ae88188e7f248748785afd2b882">OMPL_ERROR</a>(es.str().c_str());</div>
<divclass="line"><aid="l00761" name="l00761"></a><spanclass="lineno"> 761</span> }</div>
<divclass="line"><aid="l00762" name="l00762"></a><spanclass="lineno"> 762</span></div>
<divclass="line"><aid="l00763" name="l00763"></a><spanclass="lineno"> 763</span> ++j;</div>
<divclass="line"><aid="l00764" name="l00764"></a><spanclass="lineno"> 764</span><spanclass="keywordflow">if</span> (req.<aclass="code hl_variable" href="structompl_1_1tools_1_1Benchmark_1_1Request.html#a0252082e35f936c93c86eabf0d713e01">runCount</a> == 0)</div>
<divclass="line"><aid="l00765" name="l00765"></a><spanclass="lineno"> 765</span> {</div>
<divclass="line"><aid="l00766" name="l00766"></a><spanclass="lineno"> 766</span> maxTime -= rp.getTimeUsed();</div>
<divclass="line"><aid="l00767" name="l00767"></a><spanclass="lineno"> 767</span><spanclass="keywordflow">if</span> (maxTime < 0.)</div>
<divclass="line"><aid="l00768" name="l00768"></a><spanclass="lineno"> 768</span><spanclass="keywordflow">break</span>;</div>
<divclass="line"><aid="l00769" name="l00769"></a><spanclass="lineno"> 769</span> }</div>
<divclass="line"><aid="l00770" name="l00770"></a><spanclass="lineno"> 770</span><spanclass="keywordflow">else</span></div>
<divclass="line"><aid="l00771" name="l00771"></a><spanclass="lineno"> 771</span> {</div>
<divclass="line"><aid="l00772" name="l00772"></a><spanclass="lineno"> 772</span><spanclass="keywordflow">if</span> (j >= req.<aclass="code hl_variable" href="structompl_1_1tools_1_1Benchmark_1_1Request.html#a0252082e35f936c93c86eabf0d713e01">runCount</a>)</div>
<divclass="line"><aid="l00773" name="l00773"></a><spanclass="lineno"> 773</span><spanclass="keywordflow">break</span>;</div>
<divclass="line"><aid="l00774" name="l00774"></a><spanclass="lineno"> 774</span> }</div>
<divclass="line"><aid="l00775" name="l00775"></a><spanclass="lineno"> 775</span> }</div>
<divclass="line"><aid="l00776" name="l00776"></a><spanclass="lineno"> 776</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a3e166b0c8a0e8c935ec5b5f8627ed119">planners_</a>[i]->clear();</div>
<divclass="line"><aid="l00777" name="l00777"></a><spanclass="lineno"> 777</span> }</div>
<divclass="line"><aid="l00778" name="l00778"></a><spanclass="lineno"> 778</span></div>
<divclass="line"><aid="l00779" name="l00779"></a><spanclass="lineno"> 779</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a28b6c76500d022dba4a8bc075bdcc5d2">status_</a>.running = <spanclass="keyword">false</span>;</div>
<divclass="line"><aid="l00780" name="l00780"></a><spanclass="lineno"> 780</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a28b6c76500d022dba4a8bc075bdcc5d2">status_</a>.progressPercentage = 100.0;</div>
<divclass="line"><aid="l00781" name="l00781"></a><spanclass="lineno"> 781</span><spanclass="keywordflow">if</span> (req.<aclass="code hl_variable" href="structompl_1_1tools_1_1Benchmark_1_1Request.html#a0e63ef873358346cfb78a69121dfd2ec">displayProgress</a>)</div>
<divclass="line"><aid="l00782" name="l00782"></a><spanclass="lineno"> 782</span> {</div>
<divclass="line"><aid="l00783" name="l00783"></a><spanclass="lineno"> 783</span><spanclass="keywordflow">while</span> (<aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a28b6c76500d022dba4a8bc075bdcc5d2">status_</a>.progressPercentage > progress->count())</div>
<divclass="line"><aid="l00784" name="l00784"></a><spanclass="lineno"> 784</span> ++(*progress);</div>
<divclass="line"><aid="l00785" name="l00785"></a><spanclass="lineno"> 785</span> std::cout << std::endl;</div>
<divclass="line"><aid="l00786" name="l00786"></a><spanclass="lineno"> 786</span> }</div>
<divclass="line"><aid="l00787" name="l00787"></a><spanclass="lineno"> 787</span></div>
<divclass="line"><aid="l00788" name="l00788"></a><spanclass="lineno"> 788</span><aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.totalDuration = <aclass="code hl_function" href="namespaceompl_1_1time.html#acac374ab4374adb207edb38cedb7fbb1">time::seconds</a>(<aclass="code hl_function" href="namespaceompl_1_1time.html#a5da903c529cfbbce79900b7c1cbc6cc3">time::now</a>() - <aclass="code hl_variable" href="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">exp_</a>.startTime);</div>
<divclass="line"><aid="l00789" name="l00789"></a><spanclass="lineno"> 789</span></div>
<divclass="line"><aid="l00790" name="l00790"></a><spanclass="lineno"> 790</span><aclass="code hl_define" href="group__logging.html#ga04bc36d1b8c57ad7e13a8a48451a3a05">OMPL_INFORM</a>(<spanclass="stringliteral">"Benchmark complete"</span>);</div>
<divclass="line"><aid="l00791" name="l00791"></a><spanclass="lineno"> 791</span><aclass="code hl_function" href="namespaceompl_1_1msg.html#a66fd8fd39855d4166ff40164fe4d9d6b">msg::useOutputHandler</a>(oh);</div>
<divclass="line"><aid="l00792" name="l00792"></a><spanclass="lineno"> 792</span><aclass="code hl_define" href="group__logging.html#ga04bc36d1b8c57ad7e13a8a48451a3a05">OMPL_INFORM</a>(<spanclass="stringliteral">"Benchmark complete"</span>);</div>
<divclass="line"><aid="l00793" name="l00793"></a><spanclass="lineno"> 793</span>}</div>
</div>
<divclass="ttc" id="aclassompl_1_1Exception_html"><divclass="ttname"><ahref="classompl_1_1Exception.html">ompl::Exception</a></div><divclass="ttdoc">The exception type for ompl.</div><divclass="ttdef"><b>Definition</b><ahref="Exception_8h_source.html#l00046">Exception.h:47</a></div></div>
<divclass="ttc" id="aclassompl_1_1RNG_html_a9b59291cc9599888d41a1b7a748aa5fe"><divclass="ttname"><ahref="classompl_1_1RNG.html#a9b59291cc9599888d41a1b7a748aa5fe">ompl::RNG::getSeed</a></div><divclass="ttdeci">static std::uint_fast32_t getSeed()</div><divclass="ttdoc">Get the seed used to generate the seeds of each RNG instance. Passing the returned value to setSeed()...</div><divclass="ttdef"><b>Definition</b><ahref="RandomNumbers_8cpp_source.html#l00209">RandomNumbers.cpp:209</a></div></div>
<divclass="ttc" id="aclassompl_1_1base_1_1PlannerData_html"><divclass="ttname"><ahref="classompl_1_1base_1_1PlannerData.html">ompl::base::PlannerData</a></div><divclass="ttdoc">Object containing planner generated vertex and edge data. It is assumed that all vertices are unique,...</div><divclass="ttdef"><b>Definition</b><ahref="base_2PlannerData_8h_source.html#l00174">PlannerData.h:175</a></div></div>
<divclass="ttc" id="aclassompl_1_1base_1_1PlannerData_html_a383876c22dd92deeed0a536c10f7ecd4"><divclass="ttname"><ahref="classompl_1_1base_1_1PlannerData.html#a383876c22dd92deeed0a536c10f7ecd4">ompl::base::PlannerData::numEdges</a></div><divclass="ttdeci">unsigned int numEdges() const</div><divclass="ttdoc">Retrieve the number of edges in this structure.</div><divclass="ttdef"><b>Definition</b><ahref="src_2ompl_2base_2src_2PlannerData_8cpp_source.html#l00205">PlannerData.cpp:205</a></div></div>
<divclass="ttc" id="aclassompl_1_1base_1_1PlannerData_html_a877a673801134168cba0581b277cae79"><divclass="ttname"><ahref="classompl_1_1base_1_1PlannerData.html#a877a673801134168cba0581b277cae79">ompl::base::PlannerData::numVertices</a></div><divclass="ttdeci">unsigned int numVertices() const</div><divclass="ttdoc">Retrieve the number of vertices in this structure.</div><divclass="ttdef"><b>Definition</b><ahref="src_2ompl_2base_2src_2PlannerData_8cpp_source.html#l00200">PlannerData.cpp:200</a></div></div>
<divclass="ttc" id="aclassompl_1_1base_1_1PlannerData_html_aca9e2da9d9a46e42c516fc8b926ab65c"><divclass="ttname"><ahref="classompl_1_1base_1_1PlannerData.html#aca9e2da9d9a46e42c516fc8b926ab65c">ompl::base::PlannerData::properties</a></div><divclass="ttdeci">std::map< std::string, std::string > properties</div><divclass="ttdoc">Any extra properties (key-value pairs) the planner can set.</div><divclass="ttdef"><b>Definition</b><ahref="base_2PlannerData_8h_source.html#l00410">PlannerData.h:410</a></div></div>
<divclass="ttc" id="aclassompl_1_1base_1_1Planner_html_adc4df80108aec5db29373302e4b8d723"><divclass="ttname"><ahref="classompl_1_1base_1_1Planner.html#adc4df80108aec5db29373302e4b8d723">ompl::base::Planner::PlannerProgressProperties</a></div><divclass="ttdeci">std::map< std::string, PlannerProgressProperty > PlannerProgressProperties</div><divclass="ttdoc">A dictionary which maps the name of a progress property to the function to be used for querying that ...</div><divclass="ttdef"><b>Definition</b><ahref="Planner_8h_source.html#l00353">Planner.h:353</a></div></div>
<divclass="ttc" id="aclassompl_1_1control_1_1SimpleSetup_html"><divclass="ttname"><ahref="classompl_1_1control_1_1SimpleSetup.html">ompl::control::SimpleSetup</a></div><divclass="ttdoc">Create the set of classes typically needed to solve a control problem.</div><divclass="ttdef"><b>Definition</b><ahref="control_2SimpleSetup_8h_source.html#l00062">SimpleSetup.h:63</a></div></div>
<divclass="ttc" id="aclassompl_1_1geometric_1_1SimpleSetup_html"><divclass="ttname"><ahref="classompl_1_1geometric_1_1SimpleSetup.html">ompl::geometric::SimpleSetup</a></div><divclass="ttdoc">Create the set of classes typically needed to solve a geometric problem.</div><divclass="ttdef"><b>Definition</b><ahref="geometric_2SimpleSetup_8h_source.html#l00062">SimpleSetup.h:63</a></div></div>
<divclass="ttc" id="aclassompl_1_1msg_1_1OutputHandlerFile_html"><divclass="ttname"><ahref="classompl_1_1msg_1_1OutputHandlerFile.html">ompl::msg::OutputHandlerFile</a></div><divclass="ttdoc">Implementation of OutputHandler that saves messages in a file.</div><divclass="ttdef"><b>Definition</b><ahref="Console_8h_source.html#l00125">Console.h:126</a></div></div>
<divclass="ttc" id="aclassompl_1_1msg_1_1OutputHandler_html"><divclass="ttname"><ahref="classompl_1_1msg_1_1OutputHandler.html">ompl::msg::OutputHandler</a></div><divclass="ttdoc">Generic class to handle output from a piece of code.</div><divclass="ttdef"><b>Definition</b><ahref="Console_8h_source.html#l00102">Console.h:103</a></div></div>
<divclass="ttc" id="aclassompl_1_1time_1_1ProgressDisplay_html"><divclass="ttname"><ahref="classompl_1_1time_1_1ProgressDisplay.html">ompl::time::ProgressDisplay</a></div><divclass="ttdef"><b>Definition</b><ahref="Time_8h_source.html#l00087">Time.h:88</a></div></div>
<divclass="ttc" id="aclassompl_1_1tools_1_1Benchmark_html_a1bf6e6b434ae98d6d54808d5e65ded43"><divclass="ttname"><ahref="classompl_1_1tools_1_1Benchmark.html#a1bf6e6b434ae98d6d54808d5e65ded43">ompl::tools::Benchmark::plannerSwitch_</a></div><divclass="ttdeci">PreSetupEvent plannerSwitch_</div><divclass="ttdoc">Event to be called when the evaluated planner is switched.</div><divclass="ttdef"><b>Definition</b><ahref="Benchmark_8h_source.html#l00288">Benchmark.h:288</a></div></div>
<divclass="ttc" id="aclassompl_1_1tools_1_1Benchmark_html_a23533c490c5ae9617b9aeff21cb3929f"><divclass="ttname"><ahref="classompl_1_1tools_1_1Benchmark.html#a23533c490c5ae9617b9aeff21cb3929f">ompl::tools::Benchmark::PreSetupEvent</a></div><divclass="ttdeci">std::function< void(const base::PlannerPtr &)> PreSetupEvent</div><divclass="ttdoc">Signature of function that can be called before a planner execution is started.</div><divclass="ttdef"><b>Definition</b><ahref="Benchmark_8h_source.html#l00079">Benchmark.h:79</a></div></div>
<divclass="ttc" id="aclassompl_1_1tools_1_1Benchmark_html_a28b6c76500d022dba4a8bc075bdcc5d2"><divclass="ttname"><ahref="classompl_1_1tools_1_1Benchmark.html#a28b6c76500d022dba4a8bc075bdcc5d2">ompl::tools::Benchmark::status_</a></div><divclass="ttdeci">Status status_</div><divclass="ttdoc">The current status of this benchmarking instance.</div><divclass="ttdef"><b>Definition</b><ahref="Benchmark_8h_source.html#l00285">Benchmark.h:285</a></div></div>
<divclass="ttc" id="aclassompl_1_1tools_1_1Benchmark_html_a2e407791f8baa54b2e7d491f20c4b3f5"><divclass="ttname"><ahref="classompl_1_1tools_1_1Benchmark.html#a2e407791f8baa54b2e7d491f20c4b3f5">ompl::tools::Benchmark::getExperimentParameters</a></div><divclass="ttdeci">const std::map< std::string, std::string > & getExperimentParameters() const</div><divclass="ttdoc">Get all optional benchmark parameters. The map key is 'name type'.</div><divclass="ttdef"><b>Definition</b><ahref="#l00214">Benchmark.cpp:214</a></div></div>
<divclass="ttc" id="aclassompl_1_1tools_1_1Benchmark_html_a3257cb8dccc15037e81c0f235c61a7e8"><divclass="ttname"><ahref="classompl_1_1tools_1_1Benchmark.html#a3257cb8dccc15037e81c0f235c61a7e8">ompl::tools::Benchmark::benchmark</a></div><divclass="ttdeci">virtual void benchmark(const Request &req)</div><divclass="ttdoc">Benchmark the added planners on the defined problem. Repeated calls clear previously gathered data.</div><divclass="ttdef"><b>Definition</b><ahref="#l00433">Benchmark.cpp:433</a></div></div>
<divclass="ttc" id="aclassompl_1_1tools_1_1Benchmark_html_a37b5881fa63f93377e88766f6c25d88a"><divclass="ttname"><ahref="classompl_1_1tools_1_1Benchmark.html#a37b5881fa63f93377e88766f6c25d88a">ompl::tools::Benchmark::getStatus</a></div><divclass="ttdeci">const Status & getStatus() const</div><divclass="ttdoc">Get the status of the benchmarking code. This function can be called in a separate thread to check ho...</div><divclass="ttdef"><b>Definition</b><ahref="#l00269">Benchmark.cpp:269</a></div></div>
<divclass="ttc" id="aclassompl_1_1tools_1_1Benchmark_html_a3dd03001e2d2afb0dc209fe8f6980f58"><divclass="ttname"><ahref="classompl_1_1tools_1_1Benchmark.html#a3dd03001e2d2afb0dc209fe8f6980f58">ompl::tools::Benchmark::clearPlanners</a></div><divclass="ttdeci">void clearPlanners()</div><divclass="ttdoc">Clear the set of planners to be benchmarked.</div><divclass="ttdef"><b>Definition</b><ahref="#l00247">Benchmark.cpp:247</a></div></div>
<divclass="ttc" id="aclassompl_1_1tools_1_1Benchmark_html_a3e166b0c8a0e8c935ec5b5f8627ed119"><divclass="ttname"><ahref="classompl_1_1tools_1_1Benchmark.html#a3e166b0c8a0e8c935ec5b5f8627ed119">ompl::tools::Benchmark::planners_</a></div><divclass="ttdeci">std::vector< base::PlannerPtr > planners_</div><divclass="ttdoc">The set of planners to be tested.</div><divclass="ttdef"><b>Definition</b><ahref="Benchmark_8h_source.html#l00279">Benchmark.h:279</a></div></div>
<divclass="ttc" id="aclassompl_1_1tools_1_1Benchmark_html_a405e0a2857e17e93992ca9e642618787"><divclass="ttname"><ahref="classompl_1_1tools_1_1Benchmark.html#a405e0a2857e17e93992ca9e642618787">ompl::tools::Benchmark::setPreRunEvent</a></div><divclass="ttdeci">void setPreRunEvent(const PreSetupEvent &event)</div><divclass="ttdoc">Set the event to be called before the run of a planner.</div><divclass="ttdef"><b>Definition</b><ahref="#l00258">Benchmark.cpp:258</a></div></div>
<divclass="ttc" id="aclassompl_1_1tools_1_1Benchmark_html_a48b0e489b98ae6d5801f730467430bc1"><divclass="ttname"><ahref="classompl_1_1tools_1_1Benchmark.html#a48b0e489b98ae6d5801f730467430bc1">ompl::tools::Benchmark::postRun_</a></div><divclass="ttdeci">PostSetupEvent postRun_</div><divclass="ttdoc">Event to be called after the run of a planner.</div><divclass="ttdef"><b>Definition</b><ahref="Benchmark_8h_source.html#l00294">Benchmark.h:294</a></div></div>
<divclass="ttc" id="aclassompl_1_1tools_1_1Benchmark_html_a4adb9f2da67bbb9074aadd0af4dde9ef"><divclass="ttname"><ahref="classompl_1_1tools_1_1Benchmark.html#a4adb9f2da67bbb9074aadd0af4dde9ef">ompl::tools::Benchmark::getExperimentName</a></div><divclass="ttdeci">const std::string & getExperimentName() const</div><divclass="ttdoc">Get the name of the experiment.</div><divclass="ttdef"><b>Definition</b><ahref="#l00229">Benchmark.cpp:229</a></div></div>
<divclass="ttc" id="aclassompl_1_1tools_1_1Benchmark_html_a5cd270d95be4b130654bb6f3b978badf"><divclass="ttname"><ahref="classompl_1_1tools_1_1Benchmark.html#a5cd270d95be4b130654bb6f3b978badf">ompl::tools::Benchmark::setExperimentName</a></div><divclass="ttdeci">void setExperimentName(const std::string &name)</div><divclass="ttdoc">Set the name of the experiment.</div><divclass="ttdef"><b>Definition</b><ahref="#l00224">Benchmark.cpp:224</a></div></div>
<divclass="ttc" id="aclassompl_1_1tools_1_1Benchmark_html_a641cd9b520392c02eefd1ce96ec07a4e"><divclass="ttname"><ahref="classompl_1_1tools_1_1Benchmark.html#a641cd9b520392c02eefd1ce96ec07a4e">ompl::tools::Benchmark::setPlannerSwitchEvent</a></div><divclass="ttdeci">void setPlannerSwitchEvent(const PreSetupEvent &event)</div><divclass="ttdoc">Set the event to be called before any runs of a particular planner (when the planner is switched).</div><divclass="ttdef"><b>Definition</b><ahref="#l00252">Benchmark.cpp:252</a></div></div>
<divclass="ttc" id="aclassompl_1_1tools_1_1Benchmark_html_a6a7267b64dbde28d9b505ffac55c217e"><divclass="ttname"><ahref="classompl_1_1tools_1_1Benchmark.html#a6a7267b64dbde28d9b505ffac55c217e">ompl::tools::Benchmark::exp_</a></div><divclass="ttdeci">CompleteExperiment exp_</div><divclass="ttdoc">The collected experimental data (for all planners).</div><divclass="ttdef"><b>Definition</b><ahref="Benchmark_8h_source.html#l00282">Benchmark.h:282</a></div></div>
<divclass="ttc" id="aclassompl_1_1tools_1_1Benchmark_html_a74f68df4ca4750779c5a2d5ef202c27e"><divclass="ttname"><ahref="classompl_1_1tools_1_1Benchmark.html#a74f68df4ca4750779c5a2d5ef202c27e">ompl::tools::Benchmark::csetup_</a></div><divclass="ttdeci">control::SimpleSetup * csetup_</div><divclass="ttdoc">The instance of the problem to benchmark (if planning with controls).</div><divclass="ttdef"><b>Definition</b><ahref="Benchmark_8h_source.html#l00276">Benchmark.h:276</a></div></div>
<divclass="ttc" id="aclassompl_1_1tools_1_1Benchmark_html_a75b718cb770089ade746bcb12c74b832"><divclass="ttname"><ahref="classompl_1_1tools_1_1Benchmark.html#a75b718cb770089ade746bcb12c74b832">ompl::tools::Benchmark::PostSetupEvent</a></div><divclass="ttdeci">std::function< void(const base::PlannerPtr &, RunProperties &)> PostSetupEvent</div><divclass="ttdoc">Signature of function that can be called after a planner execution is completed.</div><divclass="ttdef"><b>Definition</b><ahref="Benchmark_8h_source.html#l00082">Benchmark.h:82</a></div></div>
<divclass="ttc" id="aclassompl_1_1tools_1_1Benchmark_html_a86fdc0094b39debe8ee310a9e2de8e31"><divclass="ttname"><ahref="classompl_1_1tools_1_1Benchmark.html#a86fdc0094b39debe8ee310a9e2de8e31">ompl::tools::Benchmark::addPlanner</a></div><divclass="ttdeci">void addPlanner(const base::PlannerPtr &planner)</div><divclass="ttdoc">Add a planner to use.</div><divclass="ttdef"><b>Definition</b><ahref="#l00234">Benchmark.cpp:234</a></div></div>
<divclass="ttc" id="aclassompl_1_1tools_1_1Benchmark_html_a8a562ed0d721cffc94c8aa0a2e565a25"><divclass="ttname"><ahref="classompl_1_1tools_1_1Benchmark.html#a8a562ed0d721cffc94c8aa0a2e565a25">ompl::tools::Benchmark::gsetup_</a></div><divclass="ttdeci">geometric::SimpleSetup * gsetup_</div><divclass="ttdoc">The instance of the problem to benchmark (if geometric planning).</div><divclass="ttdef"><b>Definition</b><ahref="Benchmark_8h_source.html#l00273">Benchmark.h:273</a></div></div>
<divclass="ttc" id="aclassompl_1_1tools_1_1Benchmark_html_a8c97a673cf3d27b4c8d6dbc592b56ce4"><divclass="ttname"><ahref="classompl_1_1tools_1_1Benchmark.html#a8c97a673cf3d27b4c8d6dbc592b56ce4">ompl::tools::Benchmark::setPostRunEvent</a></div><divclass="ttdeci">void setPostRunEvent(const PostSetupEvent &event)</div><divclass="ttdoc">Set the event to be called after the run of a planner.</div><divclass="ttdef"><b>Definition</b><ahref="#l00264">Benchmark.cpp:264</a></div></div>
<divclass="ttc" id="aclassompl_1_1tools_1_1Benchmark_html_a9641c6a479d33dc5e59a836bdd511fa4"><divclass="ttname"><ahref="classompl_1_1tools_1_1Benchmark.html#a9641c6a479d33dc5e59a836bdd511fa4">ompl::tools::Benchmark::addPlannerAllocator</a></div><divclass="ttdeci">void addPlannerAllocator(const base::PlannerAllocator &pa)</div><divclass="ttdoc">Add a planner allocator to use.</div><divclass="ttdef"><b>Definition</b><ahref="#l00242">Benchmark.cpp:242</a></div></div>
<divclass="ttc" id="aclassompl_1_1tools_1_1Benchmark_html_a96a5e5c2c1465e95ec5a5ea57c449518"><divclass="ttname"><ahref="classompl_1_1tools_1_1Benchmark.html#a96a5e5c2c1465e95ec5a5ea57c449518">ompl::tools::Benchmark::numExperimentParameters</a></div><divclass="ttdeci">std::size_t numExperimentParameters() const</div><divclass="ttdoc">Return the number of optional benchmark parameters.</div><divclass="ttdef"><b>Definition</b><ahref="#l00219">Benchmark.cpp:219</a></div></div>
<divclass="ttc" id="aclassompl_1_1tools_1_1Benchmark_html_a979f5df0704b89e7da4a1c29ab857a02"><divclass="ttname"><ahref="classompl_1_1tools_1_1Benchmark.html#a979f5df0704b89e7da4a1c29ab857a02">ompl::tools::Benchmark::saveResultsToFile</a></div><divclass="ttdeci">bool saveResultsToFile() const</div><divclass="ttdoc">Save the results of the benchmark to a file. The name of the file is the current date and time.</div><divclass="ttdef"><b>Definition</b><ahref="#l00300">Benchmark.cpp:300</a></div></div>