Hello together,
I’m now trying to install the px4_ros_com for few days but get stuck every time at the same point.
I’m able to compile px4_msgs but get the following error on px4_ros_com:
OpenJDK Runtime Environment (build 1.8.0_252-8u252-b09-1~18.04-b09)
OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)
CMakeFiles/micrortps_agent.dir/build.make:353: warning: overriding recipe for target '/home/xxx/px4_ros_com_ros2/src/px4_ros_com/src/micrortps_agent/Timesync.cpp'
CMakeFiles/micrortps_agent.dir/build.make:182: warning: ignoring old recipe for target '/home/xxx/px4_ros_com_ros2/src/px4_ros_com/src/micrortps_agent/Timesync.cpp'
CMakeFiles/micrortps_agent.dir/build.make:356: warning: overriding recipe for target '/home/xxx/px4_ros_com_ros2/src/px4_ros_com/src/micrortps_agent/TimesyncPubSubTypes.cpp'
CMakeFiles/micrortps_agent.dir/build.make:185: warning: ignoring old recipe for target '/home/xxx/px4_ros_com_ros2/src/px4_ros_com/src/micrortps_agent/TimesyncPubSubTypes.cpp'
CMakeFiles/micrortps_agent.dir/build.make:359: warning: overriding recipe for target '/home/xxx/px4_ros_com_ros2/src/px4_ros_com/src/micrortps_agent/TimesyncPubSubTypes.h'
CMakeFiles/micrortps_agent.dir/build.make:188: warning: ignoring old recipe for target '/home/xxx/px4_ros_com_ros2/src/px4_ros_com/src/micrortps_agent/TimesyncPubSubTypes.h'
In file included from /home/xxx/px4_ros_com_ros2/src/px4_ros_com/src/micrortps_agent/microRTPS_timesync.h:46:0,
from /home/xxx/px4_ros_com_ros2/src/px4_ros_com/src/micrortps_agent/RtpsTopics.h:38,
from /home/xxx/px4_ros_com_ros2/src/px4_ros_com/src/micrortps_agent/RtpsTopics.cpp:34:
/home/xxx/px4_ros_com_ros2/src/px4_ros_com/src/micrortps_agent/Timesync_Publisher.h:48:10: fatal error: Timesync_PubSubTypes.h: No such file or directory
#include "Timesync_PubSubTypes.h"
^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/micrortps_agent.dir/src/micrortps_agent/RtpsTopics.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/xxx/px4_ros_com_ros2/src/px4_ros_com/src/micrortps_agent/microRTPS_timesync.h:46:0,
from /home/xxx/px4_ros_com_ros2/src/px4_ros_com/src/micrortps_agent/microRTPS_timesync.cpp:42:
/home/xxx/px4_ros_com_ros2/src/px4_ros_com/src/micrortps_agent/Timesync_Publisher.h:48:10: fatal error: Timesync_PubSubTypes.h: No such file or directory
#include "Timesync_PubSubTypes.h"
^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/micrortps_agent.dir/src/micrortps_agent/microRTPS_timesync.cpp.o] Error 1
In file included from /home/xxx/px4_ros_com_ros2/src/px4_ros_com/src/micrortps_agent/microRTPS_timesync.h:46:0,
from /home/xxx/px4_ros_com_ros2/src/px4_ros_com/src/micrortps_agent/microRTPS_agent.cpp:52:
/home/xxx/px4_ros_com_ros2/src/px4_ros_com/src/micrortps_agent/Timesync_Publisher.h:48:10: fatal error: Timesync_PubSubTypes.h: No such file or directory
#include "Timesync_PubSubTypes.h"
^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/micrortps_agent.dir/src/micrortps_agent/microRTPS_agent.cpp.o] Error 1
make[1]: *** [CMakeFiles/micrortps_agent.dir/all] Error 2
make: *** [all] Error 2
---
Failed <<< px4_ros_com [ Exited with code 2 ]
Summary: 1 package finished [12min 5s]
1 package failed: px4_ros_com
1 package had stderr output: px4_ros_com
I followed this guides and only want to install the ros2 part:
- https://dev.px4.io/master/en/setup/dev_env_linux_ubuntu.html --> ubuntu.sh
-
https://dev.px4.io/master/en/setup/fast-rtps-installation.html --> from source fastrtps - 1.8.2, fastrtpsgen -1.0.4
https://dev.px4.io/master/en/middleware/micrortps.html
So I have installed:
- fastrtps 1.8.2
- fastrtpsgen 1.0.4
- ros2 Dashing
- px4 firmware latest
- java-1.8.0-openjdk-amd64 AND java-1.11.0-openjdk-amd64 (tried both using update-java-alternatives)
I also tried to delete all that stuff and start from beginning. Deleted also under /usr/local and made sure with find that noting is left.
I saw that at the cmake command for fastrtps 1.8.2, as in the docs, it says:
cmake -DTHIRDPARTY=ON -DSECURITY=ON …
…
– Configuring Fast RTPS
– Version: 1.8.4
I’m not seeing what I’m doing wrong, any advises?
I saw related posts here, but nothing of them helped for me.