Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: ‘DDS_CDR’ is not a member of ‘eprosima::fastcdr::Cdr’ #711

Open
tuananh0606-tech opened this issue Jul 10, 2024 · 16 comments

Comments

@tuananh0606-tech
Copy link

Issue template

-Hardware description: Dell G5
-RTOS: Linux
-Installation type: micro_ros_setup
-Version or commit hash: humble

Steps to reproduce the issue

I'm trying to install micro_ros_setup but when it comes to ros2 run micro_ros_setup build_agent.sh it gives me this error, I've tried many ways but it doesn't work, I've installed MicroXrceDDS before, is this the cause, if not, is there another way to fix it. Help me, please! Thanks.

Expected behavior

Screenshot from 2024-07-11 00-43-02
Screenshot from 2024-07-11 00-42-00

Actual behavior

Additional information

@Tilgaard
Copy link

Hey tuananh0606-tech

Any progress? I have the same issue.

@tuananh0606-tech
Copy link
Author

@Tilgaard Have you ever downloaded xcredds?

@NustAirworks2022
Copy link

yes I have downloaded XCREDDS and is facing the same issue

@tuananh0606-tech
Copy link
Author

@NustAirworks2022 have you solved it? I don't know how to completely remove XCRE-DDS

@NustAirworks2022
Copy link

NustAirworks2022 commented Aug 28, 2024

No I haven't solved it yet.
But now instead of using micro Ros agent I am using XCRE-DDS and it's working fine for me. Using it for PX4 Ros2 bridge.

@tuananh0606-tech
Copy link
Author

@NustAirworks2022 Can you show me how you do it? thank you

@NustAirworks2022
Copy link

Enter the following commands to fetch and build the micro XCRE-DDS agent from source:

git clone https://github.com/eProsima/Micro-XRCE-DDS-Agent.git cd Micro-XRCE-DDS-Agent mkdir build cd build cmake .. make sudo make install sudo ldconfig /usr/local/lib/

start the agent to connect to simulator
MicroXRCEAgent udp4 -p 8888

@Varchasvin10
Copy link

Im getting the same build error while trying to setup micro_ros in ros2 humble. Has any solution been found? Before the micro ros was working fine but when I downloaded and used XRCE-DDS for PX4 as @NustAirworks2022 mentioned micro ros stopped publishing messages and when i tried to reinstall it showed the same error as @tuananh0606-tech.

Screenshot from 2024-10-03 19-47-12

I dont want to continue using XRCE DDS, is there a way to delete this, i tried deleting the folders but still doesnt work.

@Varchasvin10
Copy link

Im getting the same build error while trying to setup micro_ros in ros2 humble. Has any solution been found? Before the micro ros was working fine but when I downloaded and used XRCE-DDS for PX4 as @NustAirworks2022 mentioned micro ros stopped publishing messages and when i tried to reinstall it showed the same error as @tuananh0606-tech.

Screenshot from 2024-10-03 19-47-12

I dont want to continue using XRCE DDS, is there a way to delete this, i tried deleting the folders but still doesnt work.

Got it working just had to sudo rm -r the xrcedds packages in the root directory.

@Karthik03B
Copy link

@Varchasvin10 I tried removing all the packages in the root directory, but still it doesn't work. It will help if you can give more details about how you did it and what are the packages that you installed and removed.
Thank you

@Varchasvin10
Copy link

Varchasvin10 commented Oct 9, 2024

@Varchasvin10 I tried removing all the packages in the root directory, but still it doesn't work. It will help if you can give more details about how you did it and what are the packages that you installed and removed. Thank you

Open up the terminal and try typing these,
sudo rm -r microxrcedds_agent
sudo rm -r microxrcedds_client

Ensure that you have manually deleted the MIcroXRCE-DDS packages from your home directory.

Let me know if this works, it worked for me.

@Karthik03B
Copy link

@Varchasvin10 I manually deleted all the DDS packages. It didn't work for me.

@Varchasvin10
Copy link

@Karthik03B DId you run the commands to remove it from your root directory?

@Karthik03B
Copy link

yes I did. there were no such files in the root.

@Varchasvin10
Copy link

yes I did. there were no such files in the root.

Delete your current microros workspace and Retry the microros setup and installation guidelines, you might have built the workspace before and that might not be allowing you to build it again as it might be saved with the previous setup.

@Karthik03B
Copy link

@Varchasvin10 I tried that also. Before this i installed XRCE DDS in the root , I think i installed it Globally. It's just my assumption.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants