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

rosout logging #1194

Closed
willbsp opened this issue Jun 3, 2024 · 1 comment
Closed

rosout logging #1194

willbsp opened this issue Jun 3, 2024 · 1 comment

Comments

@willbsp
Copy link

willbsp commented Jun 3, 2024

  • Hardware description: Pi Pico, with Micro ROS agent running on Pi 5 (Ubuntu 24, ROS2 Jazzy)
  • Installation type: Micro ROS Pico SDK (Jazzy), micro ROS agent docker (Jazzy)
  • Version or commit hash: f2285a0

Steps to reproduce the issue

I am trying to log using RCUTILS_LOG_INFO_NAMED (inside the pico_micro_ros_example.c file), however, I see no log in either the Micro ROS docker container output or when I run ros2 topic echo /rosout.

Expected behavior

Will see log outputs in /rosout

Actual behavior

No logs are visible

Additional information

In researching this issue, I found this issue where someone suggests using `rcl_logging_configure_with_output_handler', however when I compile I get:

pico_micro_ros_example.c:(.text.startup.main+0x52): undefined reference to `rcl_logging_configure_with_output_handler'
/usr/lib/gcc/arm-none-eabi/13.2.1/../../../arm-none-eabi/bin/ld: pico_micro_ros_example.c:(.text.startup.main+0xec): undefined reference to `rcl_logging_multiple_output_handler'

However, I have the following in pico_micro_ros_example.c:

#include <rcl/logging.h>

Thanks for this project, I am quite new to ROS2 and looking forward to experimenting with Micro ROS!

@pablogs9
Copy link
Member

pablogs9 commented Jun 3, 2024

micro-ROS does not support logging to rosout, you will need to create your own publisher to this topic.

@pablogs9 pablogs9 closed this as completed Jun 3, 2024
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

2 participants