ROS2: how to get fastrtps logging output

asked 2023-02-15 15:19:23 -0500

Bernd Pfrommer gravatar image

I'm trying to debug some FASTRTPS rmw connectivity issues. How do I get debugging output from the FASTRTPS layer? If I feed in an xml file and there is any mistake in it I often get just this message:

terminate called after throwing an instance of 'eprosima::fastcdr::exception::NotEnoughMemoryException' what(): Not enough memory in the buffer stream

This message is generated if e.g. a TCP transport is not found and for many other reasons. How can I get better debugging output?

edit retag flag offensive close merge delete

Comments

No success when adding this to my code:

const auto ret = rmw_set_log_severity(RMW_LOG_SEVERITY_DEBUG);
Bernd Pfrommer gravatar image Bernd Pfrommer  ( 2023-02-15 15:47:35 -0500 )edit