LiDAR.jl¶
This is software for LiDAR model that is used to help navigate an a model of an autonomous ground vehicle.
Table of Contents¶
Installation on Ubuntu 16.04¶
1. julia
programs needed¶
get and build:
Pkg.add("RobotOS")
Pkg.add("PyCall")
Pkg.build("RobotOS")
Pkg.build("PyCall")
3. ROS
¶
Follow the instructions here
Note: In step # 1.4, run this one (the full one seems to be broken):
sudo apt-get install ros-kinetic-desktop
4. Initialization of Package¶
4.1. Run cmake .
and make
¶
- open another terminal ->
ctr``+``shift``+``t
- navigate to the folder
.scr/c_code
- in the terminal type
cmake .
and hitenter
- in the terminal type
make
and hitenter
4.2. Set path for gazebo plugins¶
Not sure if this needs to be done:
A. in the terminal type (only should have to do during initialization):
export GAZEBO_PLUGIN_PATH=$HOME/gazebo_plugin_tutorial/build:$GAZEBO_PLUGIN_PATH
TODO: need to change path
4.3 Get the velodyne_hdl32
model for Gazebo
¶
Either:
- Fork the gazebo_models database by visiting https://bitbucket.org/osrf/gazebo_models/fork.
OR
- Just copy the folder
./LiDAR/scr/gazebo/gazebo_models
into$HOME.gazebo/models/
- NOTE: the following is designed for use with Ubuntu 16.04
Basic Usage¶
1. Start roscore
¶
- open a new terminal ->
ctr``+``alt``+``t
- in the terminal type
roscore
and hitenter
2. Make a ROS node in python
that communicates to a julia
node¶
- open another terminal ->
ctr``+``shift``+``t
- navigate to the folder containing
echoinode.py
(i.e../scr
) - in the terminal type
python echonode.py
and hitenter
3. Run a julia
function that can communicate with the LiDAR
model¶
- open another terminal ->
ctr``+``shift``+``t
- navigate to the folder containing
handler.jl
(i.e../scr
) - in the terminal type
julia
and hitenter
#. in the julia
type:
include("handler.jl")
4. run gazebo
model of the LiDAR¶
- navigate to the folder
.scr/c_code
- in the terminal type
gazebo velodyne.world
and hitenter
- A Gazebo gui should appear on the screen