Wiki | Home | Documentation | Tutorials | Qualifiers | Finals
Currently, GEAR can only be built from source.
GEAR requires a machine running Ubuntu Bionic (18.04). If you're running Ubuntu, but not sure which version then run the following command to find out.
$ cat /etc/os-release
You should see 18.04 Bionic Beaver in that file.
-
GEAR uses ROS Melodic and Gazebo 9.16.0 to simulate the environment
-
Follow these instructions to install ROS Melodic.
-
The default version of Gazebo (9.0) that comes with ROS Melodic will not work with the current version of GEAR. Gazebo 9.16.0 is recommended and can be installed with the following instructions.
$ sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list' $ wget https://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add - $ sudo apt update $ sudo apt upgrade
-
Note, if you see a crash complaining about missing a symbol in an ignition library, run this to fix it
$ sudo apt-get update
$ sudo apt-get upgrade libignition-math4
The Catkin Command Line Tools (catkin_tools) will be used to build the software.
Follow these instructions to install catkin_tools. If you followed the instructions to install ROS above, it should be as simple as
$ sudo apt-get update
$ sudo apt-get install python-catkin-tools
A catkin workspace is a place to build ROS packages.
You will need to create one to have a place to build the GEAR packages.
Run these commands to create a workspace ariac_ws
in your home folder.
$ source /opt/ros/melodic/setup.bash
$ mkdir -p ~/ariac_ws/src
$ cd ~/ariac_ws
$ catkin init
The source code for GEAR
is located in the nist_gear repository on github. GEAR also uses a custom version of gazebo_ros_pkgs.
Follow these instructions to put the for both of these into the catkin workspace.
$ cd ~/ariac_ws/src
$ git clone https://github.com/usnistgov/ARIAC.git
$ git clone https://github.com/osrf/ariac-gazebo_ros_pkgs -b ariac-network-melodic
The cloned software has its own dependencies that need to be installed. The tool rosdep can do this automatically. If you have not used rosdep before, then it must be initialized before running the command above. Run this if you have not used rosdep before:
$ sudo apt-get install python-rosdep
$ sudo rosdep init
$ rosdep update
Once rosdep has been initialized, use it to install dependencies:
$ cd ~/ariac_ws
$ rosdep install --from-paths ./src --ignore-packages-from-source -y
If not installed, make sure you install ros_control:
$ sudo apt install ros-melodic-ros-control* ros-melodic-control* ros-melodic-gazebo-ros-control*
The command catkin
from the Catkin Command Line Tools is used to build the software.
All of these commands must be run from the root of the workspace.
Use cd
to get there in a terminal.
$ cd ~/ariac_ws
For more information see the documentation for catkin build
.
Run this to build all of the packages in the workspace.
$ catkin build
Once all packages have been built once, you can rebuild them individually as needed.
The command to build a single package by name is:
$ catkin build --no-deps PACKAGE_NAME
For example, run this to build just the main GEAR package:
$ catkin build --no-deps nist_gear
To build packages in debug mode with debug symbols, add cmake
args specifying the build type.
For example, to rebuild all package in debug mode use:
$ catkin build --cmake-args -DCMAKE_BUILD_TYPE=Debug
To build in release use:
$ catkin build --cmake-args -DCMAKE_BUILD_TYPE=Release
For more info see the documentation on CMAKE_BUILD_TYPE.
See Wiki | Tutorials | Interacting with GEAR to build and use GEAR.
Wiki | Home | Documentation | Tutorials | Qualifiers | Finals