Due to add_custom_command in the CmakeList in line 44, It couldn't get the sdk on the first build. It is downloading the sdk and giving the following output.
Starting >>> mocap_optitrack_driver
[Processing: mocap_optitrack_driver]
--- stderr: mocap_optitrack_driver
In file included from /home/aarsh/ros2_ws/src/MOCAP4ROS2/mocap4ros2_optitrack/mocap_optitrack_driver/src/mocap_optitrack_driver/mocap_optitrack_driver.cpp:27:
/home/aarsh/ros2_ws/src/MOCAP4ROS2/mocap4ros2_optitrack/mocap_optitrack_driver/include/mocap_optitrack_driver/mocap_optitrack_driver.hpp:52:10: fatal error: NatNetTypes.h: No such file or directory
52 | #include <NatNetTypes.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/mocap_optitrack_driver.dir/build.make:63: CMakeFiles/mocap_optitrack_driver.dir/src/mocap_optitrack_driver/mocap_optitrack_driver.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:136: CMakeFiles/mocap_optitrack_driver.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:141: all] Error 2
---
Failed <<< mocap_optitrack_driver [45.6s, exited with code 2]
Summary: 0 packages finished [45.8s]
1 package failed: mocap_optitrack_driver
1 package had stderr output: mocap_optitrack_driver
Due to
add_custom_command
in the CmakeList in line 44, It couldn't get the sdk on the first build. It is downloading the sdk and giving the following output.rebuilding the package shows success.
This might impact the CI.