SOFTWARE INSTALLATION

MAY 4, 2020 · BY ZHENGJIE XUAN, CHENG CHE ☀

Requisite Software

Since we must be able to communicate with the radio modules over a serial connection. We use PySerial for that functionality.

You can install it by type the following command in a terminal concole.

pip install pyserial

Make xbee_api Package

1. Create workspace for xbee_api.

mkdir -p [ws]/src


2. Enter the path of the src folder just created.

cd [ws]/src


3. Download xbee_api.zip.

curl -O https://www.cefns.nau.edu/capstone/projects/EE/2020/FF1RR-S20/software/xbee_api.zip

Or download directly through the download button and manually put it into the target folder.



4. Unzip xbee_api.zip.

unzip xbee_api.zip

Delete zip file

rm xbee_api.zip


5. Compile catkin workspace with catkin_make.

Return to the root directory of the workspace.

cd [ws]

Then.

catkin_make

Don't forget to add the workspace to the ROS environment variable.

source devel/setup.bash

Let's check.

echo $ROS_PACKAGE_PATH
/home/user/[ws]/src:/opt/ros/kinetic/share #Success


Congratulations, you have completed all the settings and can start using xbee_api, let's start with the demo.


Please Email us if there are any problem.