Installation of this ROS2 package has been tested with Ubuntu 20.04 and Windows 10.
In order to build the Force Dimension ROS2 node, the Force Dimension SDK must be available to the ROS2 build system. The SDK also provides all drivers and libraries that are essential for interfacting with a Force Dimension robot.
To install the Force Dimension SDK, download it from the
Force Dimension website.1 Extract the SDK to a
desired location in the target computer's filesystem (e.g., /path/to/sdk
or
C:\path\to\sdk
). The build system must then be made aware of the SDK via
CMake configuration. Copy the file
ForceDimensionSDKConfig.cmake
from the root of this project into the root
directory of the Force Dimension SDK (e.g., /path/to/sdk
or
C:\path\to\sdk
). Set the environmental variable ForceDimensionSDK_DIR
to point to the directory containing the CMake config file.2 For example,
issue a terminal command like the following:
- Linux:
export ForceDimensionSDK_DIR=/path/to/sdk
- Windows:
set ForceDimensionSDK_DIR=C:\path\to\sdk
Some additional steps might be required for Linux builds. In particular, some additional dependencies might need to be installed via a package manager, and dynamic libraries might need to be registered with the build system via ldconfig.
If the SDK builds, but the applications fail during testing, then device permissions might need to be adjusted.
If building the Force Dimension SDK from the command line, then an appropriate command line environment must be initialized.
The SDK build is accomplished in the following way:
- Linux: Run the
make
command in a terminal at the root of the Force Dimension SDK path. - Windows: Use MS Visual Studop to build the project.
Once the SDK is built, test it by running one of the included binaries (e.g.,
bin/gravity
or bin\gravity.exe
).
Note: Force Dimension robots must be calibrated to function properly. See the section on robot calibration for further details.
The Force Dimension ROS2 package is built in the
standard fashion,3 using colcon
.4 If the
Force Dimension SDK has been installed correctly, then no additional steps are
required.
Footnotes
-
At the time of writing this document, the current version is 3.13. ↩
-
This environmental variable does not need to be set persistently. It is only required during the build process. ↩
-
Do not forget to configure or source your ROS2 environment. ↩
-
Reminder: The
ForceDimensionSDK_DIR
environmental variable must be set during the build process. See the instructions for installing the Force Dimension SDK. ↩