File tree 8 files changed +27
-27
lines changed
8 files changed +27
-27
lines changed Original file line number Diff line number Diff line change @@ -56,5 +56,5 @@ roadmaps/benchmark_examples/
56
56
roadmaps /benchmark_plots /benchmark.png
57
57
roadmaps /benchmark_plots /benchmark_ * .png
58
58
59
- # build folder for cvd
60
- roadmaps /cvd /build /*
59
+ # build folder for cvt
60
+ roadmaps /cvt /build /*
Original file line number Diff line number Diff line change @@ -401,24 +401,24 @@ def __init__(self,
401
401
# self._set_graph(g)
402
402
403
403
404
- class CVD (RoadmapToTest ):
404
+ class CVT (RoadmapToTest ):
405
405
def __init__ (self ,
406
406
map_fname : str ,
407
407
rng : Random ,
408
408
roadmap_specific_kwargs ):
409
409
super ().__init__ (map_fname , rng , roadmap_specific_kwargs )
410
- from roadmaps .cvd .build .libcvd import CVD
410
+ from roadmaps .cvt .build .libcvt import CVT
411
411
from roadmaps .var_odrm_torch .var_odrm_torch import (
412
412
make_graph_and_flann , optimize_poses )
413
413
414
414
# prepare args
415
- cvd_kwargs = self .roadmap_specific_kwargs .copy ()
415
+ cvt_kwargs = self .roadmap_specific_kwargs .copy ()
416
416
417
- # run cvd
418
- cvd = CVD ()
419
- nodes , runtime_points = cvd .run (
417
+ # run cvt
418
+ cvt = CVT ()
419
+ nodes , runtime_points = cvt .run (
420
420
mapFile = map_fname ,
421
- ** cvd_kwargs ,
421
+ ** cvt_kwargs ,
422
422
plot = False ,
423
423
)
424
424
pos = torch .Tensor (nodes ) / roadmap_specific_kwargs ["resolution" ]
@@ -700,7 +700,7 @@ def run():
700
700
df = pd .DataFrame ()
701
701
ns = [500 , 1200 , 2000 ]
702
702
trials = [
703
- (CVD , {
703
+ (CVT , {
704
704
'DA' : 0.14 ,
705
705
'DB' : 0.06 ,
706
706
'f' : 0.035 ,
@@ -710,7 +710,7 @@ def run():
710
710
'target_n' : ns [0 ],
711
711
'plot' : True ,
712
712
}),
713
- (CVD , {
713
+ (CVT , {
714
714
'DA' : 0.14 ,
715
715
'DB' : 0.06 ,
716
716
'f' : 0.035 ,
@@ -719,7 +719,7 @@ def run():
719
719
'iterations' : 10000 ,
720
720
'target_n' : ns [1 ],
721
721
}),
722
- (CVD , {
722
+ (CVT , {
723
723
'DA' : 0.14 ,
724
724
'DB' : 0.06 ,
725
725
'f' : 0.035 ,
Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.5)
2
- project (cvd )
2
+ project (cvt )
3
3
4
4
set (CMAKE_CXX_STANDARD 14)
5
5
# set(CMAKE_CXX_STANDARD_REQUIRED ON)
@@ -29,15 +29,15 @@ include_directories(
29
29
)
30
30
31
31
# the python module
32
- SET (cvd cvd )
32
+ SET (cvt cvt )
33
33
34
- add_library (${cvd } SHARED
35
- src/${cvd } .cpp
34
+ add_library (${cvt } SHARED
35
+ src/${cvt } .cpp
36
36
lodepng/lodepng.cpp
37
37
)
38
38
39
39
TARGET_LINK_LIBRARIES (
40
- ${cvd }
40
+ ${cvt }
41
41
${Boost_LIBRARIES}
42
42
${OpenCV_LIBS}
43
43
)
Original file line number Diff line number Diff line change 1
- # Centroidal Voronoi tessellation (CVD )
1
+ # Centroidal Voronoi Tessellation (CVT )
2
2
3
3
## Requirements
4
4
File renamed without changes.
Original file line number Diff line number Diff line change 2
2
import matplotlib .image as mpimg
3
3
import numpy as np
4
4
5
- from roadmaps .cvd .build .libcvd import CVD
5
+ from roadmaps .cvt .build .libcvt import CVT
6
6
7
7
if __name__ == '__main__' :
8
8
img_path = "roadmaps/odrm/odrm_eval/maps/plain.png"
9
9
10
- cvd = CVD ()
11
- (nodes , t ) = cvd .run (img_path , 100 )
10
+ cvt = CVT ()
11
+ (nodes , t ) = cvt .run (img_path , 100 )
12
12
img = mpimg .imread (img_path )
13
13
nodes = np .array (nodes )
14
14
File renamed without changes.
Original file line number Diff line number Diff line change 10
10
#include < chrono>
11
11
using namespace std ::chrono;
12
12
13
- class CVD
13
+ class CVT
14
14
{
15
15
public:
16
- CVD ()
16
+ CVT ()
17
17
{
18
18
}
19
19
20
20
boost::python::tuple run (
21
21
std::string mapFile, int n_nodes, int seed = 1 )
22
22
{
23
- std::string example_folder = " roadmaps/cvd /examples/" ;
23
+ std::string example_folder = " roadmaps/cvt /examples/" ;
24
24
25
25
// seed opencv rng
26
26
cv::RNG rng (seed);
@@ -104,13 +104,13 @@ class CVD
104
104
}
105
105
};
106
106
107
- BOOST_PYTHON_MODULE (libcvd )
107
+ BOOST_PYTHON_MODULE (libcvt )
108
108
{
109
109
using namespace boost ::python;
110
110
namespace bp = boost::python;
111
- class_<CVD >(" CVD " , init<>())
111
+ class_<CVT >(" CVT " , init<>())
112
112
.def (
113
- " run" , &CVD ::run,
113
+ " run" , &CVT ::run,
114
114
(bp::arg (" mapFile" ), bp::arg (" n_nodes" ), bp::arg (" seed" ) = 0 )
115
115
)
116
116
;
You can’t perform that action at this time.
0 commit comments