This README documents the main functions and debugging steps taken during EPP2 (CG2111A) Project.
Compiling Alex RPi code on the RPi terminal:
gcc alex-pi.cpp serial.cpp serialize.cpp –pthread –o Alex-pi
To run the Alex RPi code:
./Alex-Pi
Initial source code to run for every new terminal opened. By putting in .bashrc we remove the need to do this every time:
source ~/cg2111a/devel/setup.bash (put in bashrc)
Run roscore on RPi (one terminal):
roscore
Start RPLidar Data stream (another terminal):
roslaunch rplidar_ros rplidar.launch
Run rviz on Ubuntu terminal:
roslaunch hector_slam_launch tutorial.launch
**note: IMPORT_MASTER_URI done in .bashrc**
To launch rviz on the RPi (no offloading to another desktop; we did not do this):
roslaunch rplidar_ros view_slam.launch
vim /etc/hosts