Closed KurtE closed 5 years ago
Hi @KurtE,
I seems that you have already a Fast RTPS distribution installed in your machine, but the operator==
has been implemented later. You can try to uninstall Fast RTPS and install it with -DTHIRDPARTY=ON
from Micro XRCE-DDS.
Hello @julianbermudez,
thanks to your help I could solve this error. Since ROS2 is using your rtps stack as well, I had it already installed. Are you planning to provide ROS2 with the same distribution of the code?
@ToRaVe @julianbermudez
For what it is worth, I am setting up the UP board to run ROS2 for Turtlebot3 and some of the issues I ran into were because the Turtlebot3 code has not yet been updated to the changes in the APIs between the Beta 2 release and the new current release.
So I was able to get the code to now build, by getting back to Beta 2... I did this like:
$ cd && git clone https://github.com/eProsima/micro-RTPS-agent.git
$ cd micro-RTPS-agent
$ git checkout tags/v1.0.0beta2
$ mkdir build && cd build
$ cmake -DTHIRDPARTY=ON -DCONFIG_UDP_TRANSPORT_MTU=4096 -DCONFIG_SERIAL_TRANSPORT_MTU=4096 ..
$ sudo make install
Likewise for the other one...
Hopefully they will update the ROS2/Turtlebot3 code/instructions soon to go up to this released version.
Kurt
Hi, @ToRaVe, @KurtE
I solved this problem in the following way. This solution refers to the following issues.
The problem is that the version of FastRTPS master is not 1.7.0. Therefore, you need to remove the global FastRTPS installed in OS and install correct version. The problem here is that FastRTPS of ROS2 can also be global. Normally we set bashrc to automatically run the bash file shown below, which makes it possible to use a different version of FastRTPS.
source $HOME/workspace/ros2/install/local_setup.bash
source /opt/ros/$ROS_DISTRO/setup.bash
So, comment out this in bashrc and run the cmake -DTHIRDPARTY command again to download the version of FastRTPS required by Agent 1.0.0 automatically. Then, you can see that the Agent is installed normally because the version matches. (I have not yet touched ROS2 and Agent at the same time, so I'll check tomorrow to see if it works)
+Update: It works with ROS2 well!
The issue is solved in the last tag v1.0.2: 268a65d
I have tried installing/building with the instructions up at: https://micro-xrce-dds.readthedocs.io/en/latest/installation.html
If I try building for both agent and client, the build fails with compile error.
I have tried this on two different machines/boards. My old desktop computer and an UP board (both 64 bit Ubuntu 18.04.1 installs