RobotDriver Build and Run (Linux)

This document describes how to obtain source code, build with CMake, and run RobotDriver on Linux. When integrating with MyCobotPro450, ensure the robot-side network service is properly ready in your actual environment (such as TCP IP and port).


Get Source Code

Official organization repository (GitHub): https://github.com/elephantrobotics/RobotDriver

git clone https://github.com/elephantrobotics/RobotDriver.git
cd RobotDriver

If the repository name/path under the organization differs, use the actually published RobotDriver repo listed on Elephant Robotics · GitHub.


Two Bash scripts are provided at repository root. They clean/recreate build/, then reconfigure and build, producing build/RobotDriver.

Script Description
build_on_linux_no_realtime.sh ROBOT_USE_RT_THREADS=OFF. Normal users can usually run the generated executable directly, with no real-time scheduling permissions required.
build_on_linux_realtime.sh Real-time threads enabled by default (ROBOT_USE_RT_THREADS=ON). Runtime often requires root or capabilities such as CAP_SYS_NICE / rtprio.

For first-time use, grant execute permissions and run (from repository root):

chmod +x build_on_linux_no_realtime.sh build_on_linux_realtime.sh
./build_on_linux_no_realtime.sh

Run example after successful build:

cd build
./RobotDriver

Connection parameters (for example, IP/port) should follow in-program configuration or CLI help.


Method 2: Manual CMake

Run in the repository root (same directory as CMakeLists.txt):

mkdir -p build
cd build
cmake ..
cmake --build .

Optional: disable real-time threads (same behavior as build_on_linux_no_realtime.sh):

cmake .. -DROBOT_USE_RT_THREADS=OFF
cmake --build .

Optional: Release build:

cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build .

After compilation, the executable is located at build/RobotDriver by default (same as script output path).


Notes

  • Project requires CMake ≥ 3.16 and C++17. See previous chapter: environment setup.
  • Linux only is supported. Windows / macOS build workflow is not delivered for this project.

← Previous | Next →

results matching ""

    No results matching ""