-
Notifications
You must be signed in to change notification settings - Fork 772
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
Fast DDS Subscriber "Failed init_port" #2099
Comments
Hi @wrgtri Could you check if running |
Hi @MiguelCompany
But when I rerun the ros2 publisher and then the fastdds subscriber, I get the same error again in whichever terminal (publisher or subscriber) was run second. |
Error was caused by having two installations of FastDDS, one that came with ROS2 and another that I installed. My programs were then calling alternate versions, so they were "stepping on each other's toes." Solution was to uninstall the extra one and have both use the FastDDS that comes with ROS2. |
Expected Behavior
Running
should run without errors.
Current Behavior
When
participant_ = DomainParticipantFactory::get_instance()->create_participant(0, pqos);
is called (specificallycreate_participant()
, the following error is producedAdditional context
I have set up an outside application to receive Fast DDS messages from ROS2. I have been able to test that I can receive ros2 topic messages in a simple outside fast dds subscriber (generated using
fastddsgen -example CMake MyMsg.idl
).Now I am trying to incorporate the Fast DDS subscriber code into another application. However, the above error is produced in the MyMsgSubscriber.cxx (created using fastddsgen command above), in MyMsgSubsriber::init(), line
participant_ = DomainParticipantFactory::get_instance()->create_participant(0, pqos);
. Why is this error occurring? Thank youSystem information
The text was updated successfully, but these errors were encountered: