Skip to content

Fork of a ROS 2 vendor package for Force Dimension SDK

License

Notifications You must be signed in to change notification settings

THU-DA-Robotics/fd_sdk_vendor

 
 

Repository files navigation

fd_sdk_vendor

ROS 2 vendor package for Force Dimension SDK (version 3.16.0).

Tested with a Humble ROS distribution only (Ubuntu 22.04 LTS)

CI (humble) Build tests (iron) Build tests (rolling)

Usage example

package.xml :

...
<depend>fd_sdk_vendor</depend>
...

CMakeLists.txt :

...
find_package(fd_sdk_vendor)
...
ament_target_dependencies(<the_target> <type> fd_sdk_vendor)
...

xxx.cpp :

#include <fd_sdk_vendor/dhd.hpp>

/*
-----------------------------
List of valid include paths:
-----------------------------
  * Haptic SDK
#include <fd_sdk_vendor/dhd.hpp>

  * Robotic SDK
#include <fd_sdk_vendor/drd.hpp>

  * Legacy includes (provided for compatibility with older code)
#include "dhdc.h"
#include "drdc.h"
*/
...

int major, minor, release, revision;
dhdGetSDKVersion (&major, &minor, &release, &revision);
printf("Force Dimension SDK, version %i.%i.%i", major, minor, release);

...

About

Fork of a ROS 2 vendor package for Force Dimension SDK

Resources

License

Stars

Watchers

Forks

Languages

  • C++ 54.6%
  • CMake 42.5%
  • Dockerfile 2.9%