Install Bazel: https://docs.bazel.build/versions/master/install-ubuntu.html#install-with-installer-ubuntu
Ccache conflicts with Bazel. If it is installed, disabled by running this in every terminal using Bazel, or add it to your .bashrc
:
export CC=/usr/bin/gcc
export CXX=/usr/bin/g++
Run (each line in separate terminals):
roscore
bazel run //ros/talker
bazel run //ros/listener
The core of ROS C++ works:
- Msg generation
- Srv generation
- roscpp pub/sub communication
Python is not supported.
Works well with CLion 2018.2.7 and version 2018.12.03.0.2
of the Bazel plugin found here. We recommend Jetbrains Toolbox for selecting a specific version of CLion.