Switch from Python2 to Python3

This commit is contained in:
Simon D. Levy
2018-06-02 23:31:27 -04:00
parent 70bf9c9585
commit 3c7e7f2d3e
7 changed files with 15 additions and 15 deletions

View File

@@ -63,13 +63,13 @@ If odometry is available, it can also be passed into the update method.
The BreezySLAM installation uses the popular The BreezySLAM installation uses the popular
<a href="http://docs.python.org/2/distutils/introduction.html">distutils</a> <a href="http://docs.python.org/2/distutils/introduction.html">distutils</a>
approach to installing Python packages, so all you should have to do is approach to installing Python packages, so all you should have to do is
download and unzip the file, cd to <tt><b>BreezySLAM-master/python</b></tt>, and do download and unzip the file, cd to <tt><b>BreezySLAM/python</b></tt>, and do
<pre> <pre>
sudo python setup.py install sudo python3 setup.py install
</pre> </pre>
For a quick demo, you can then cd to <tt><b>BreezySLAM-master/examples</b></tt> and do For a quick demo, you can then cd to <tt><b>BreezySLAM/examples</b></tt> and do
<pre> <pre>
make pytest make pytest
@@ -143,7 +143,7 @@ For making the binary on Windows I found
<h3>Installing for C++</h3> <h3>Installing for C++</h3>
Just cd to <tt><b>BreezySLAM-master/cpp</b></tt>, and do Just cd to <tt><b>BreezySLAM/cpp</b></tt>, and do
&nbsp; &nbsp; <h3><b><tt>sudo make install</tt></b></h3> &nbsp; &nbsp; <h3><b><tt>sudo make install</tt></b></h3>
@@ -153,7 +153,7 @@ variable at the top of the Makefile.
<p> <p>
For a quick demo, you can then cd to <tt><b>BreezySLAM-master/examples</b></tt> and do For a quick demo, you can then cd to <tt><b>BreezySLAM/examples</b></tt> and do
<pre> <pre>
make cpptest make cpptest
@@ -168,15 +168,15 @@ the Makefile in this directory as well, if you don't use <tt><b>/usr/local/lib</
<h3>Installing for Java</h3> <h3>Installing for Java</h3>
In <tt><b>BreezySLAM-master/java/edu/wlu/cs/levy/breezyslam/algorithms</b></tt> and In <tt><b>BreezySLAM/java/edu/wlu/cs/levy/breezyslam/algorithms</b></tt> and
<tt><b>BreezySLAM-master/java/edu/wlu/cs/levy/breezyslam/components</b></tt>, <tt><b>BreezySLAM/java/edu/wlu/cs/levy/breezyslam/components</b></tt>,
edit the <tt>JDKINC</tt> variable to reflect where you installed the JDK. edit the <tt>JDKINC</tt> variable to reflect where you installed the JDK.
Then run make in these directories, and also in Then run make in these directories, and also in
<tt><b>BreezySLAM-master/java/edu/wlu/cs/levy/breezyslam/robots</b></tt>. <tt><b>BreezySLAM/java/edu/wlu/cs/levy/breezyslam/robots</b></tt>.
<p> <p>
For a quick demo, you can then cd to <tt><b>BreezySLAM-master/examples</b></tt> and do For a quick demo, you can then cd to <tt><b>BreezySLAM/examples</b></tt> and do
<pre> <pre>
make javatest make javatest

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
''' '''
log2pgm.py : BreezySLAM Python demo. Reads logfile with odometry and scan data log2pgm.py : BreezySLAM Python demo. Reads logfile with odometry and scan data

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
''' '''
log2pkl.py : BreezySLAM Python demo. Reads logfile with odometry and scan data log2pkl.py : BreezySLAM Python demo. Reads logfile with odometry and scan data

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
''' '''
log2png.py : BreezySLAM Python demo. Reads logfile with odometry and scan data log2png.py : BreezySLAM Python demo. Reads logfile with odometry and scan data

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
''' '''
logdemo.py : BreezySLAM Python demo. Reads logfile with odometry and scan data logdemo.py : BreezySLAM Python demo. Reads logfile with odometry and scan data

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
''' '''
urgslam.py : BreezySLAM Python with Hokuyo URG04LX Lidar urgslam.py : BreezySLAM Python with Hokuyo URG04LX Lidar

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
''' '''
xvslam.py : BreezySLAM Python with GetSurreal XV Lidar xvslam.py : BreezySLAM Python with GetSurreal XV Lidar