Sunrisedds
CycloneDDS on KUKA Sunrise.OS for integration with ROS2
Install / Use
/learn @tingelst/SunriseddsREADME
SunriseDDS
CycloneDDS on KUKA Sunrise.OS for integration with ROS2
Build CycloneDDS for Windows 7 32 Bit
-
Download and install Visual Studio 2019 Community Edition from: https://visualstudio.microsoft.com. Select 'Desktop development with C++'.
-
Download and install the latest CMake release from: https://cmake.org/download.
-
Download and unzip the latest winflexbison release from: https://github.com/lexxmark/winflexbison/releases. Tested with version 2.5.24 (bison 3.7.4,, flex 2.6.4).
-
Download and unzip Eclipse Cyclone DDS from: https://github.com/eclipse-cyclonedds/cyclonedds/archive/refs/heads/master.zip.
-
Open CMake and configure Cyclone DDS: Select the advanced option, set
BISON_EXECUTABLEto thewin_bison.exein the unzipped winflexbison folder, and disable the use of OpenSSL by unselectingENABLE_SSL. PressConfigure,Generate. Open the generated Visual Studio project by pressingOpen Project. -
In Visual Studio 2019, open the file:
src/ddsrt/src/time/windows/time.cand add the following preprocessor definitions#if defined(_WIN32_WINNT) && _WIN32_WINNT != 0x0601 #undef _WIN32_WINNT #define _WIN32_WINNT 0x0601 #endifabove the block:
/* GetSystemTimePreciseAsFileTime was introduced with Windows 8, so starting from _WIN32_WINNET = 0x0602. When building for an older version we can still check dynamically. */ #if defined(_WIN32_WINNT) && _WIN32_WINNT >= 0x0602 #define UseGetSystemTimePreciseAsFileTime #else typedef void (WINAPI *GetSystemTimeAsFileTimeFunc_t)(LPFILETIME); static GetSystemTimeAsFileTimeFunc_t GetSystemTimeAsFileTimeFunc = GetSystemTimeAsFileTime; static HANDLE Kernel32ModuleHandle; #endifThis is to enable a Windows 7 build as Visual Studio 2019 by default targets Windows 10.
-
Build the solution (ALL_BUILD). Ensure that the configuration is set to
Releaseand that the platform is set toWin32. -
Install the solution (INSTALL). The default install directory is
C:\Program Files\CycloneDDS.
Install Sunrise Workbench
Install Sunrise Workbench. The installer comes with the installation medium from KUKA.
Configure environment variables
-
Define the
JAVA_HOMEenvironment variable to the Sunrise Workbench jdk folder. Default location:C:\Program Files\KUKA\Sunrise Workbench\jdk. -
Append
%JAVA_HOME%\binto thePathenvironment variable.
