ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Where is RCLCPP_INFO definition and how it works

asked 2021-11-04 22:52:05 -0500

Rongcai gravatar image

Hello there,

I am trying to understand how LOG system works on ROS2. When I try to find the definition of RCLCPP_INFO from galactic source and found nothing but one under build directory as below: ../../../ros2_galactic_src/build/rclcpp/include/rclcpp/logging.hpp

As I know, filese under build are all temp files created or copied from other places. So my question here is where is the origial definition of RCLCPP_INFO( Actually, a series of this kind APIs)?

In addtion, If I am right, the undergound of the log systems is log4cxx library. If so, where is the place to load this library?

Thanks Rongcai Ling

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2021-11-05 07:02:15 -0500

Karl gravatar image

Are you looking for this? If you scroll down a bit below the dependency graph, you can find the different declarations.

https://docs.ros2.org/galactic/api/rc...

if you only want to use RCLCPP_INFO and friends, you don't need to include any other library.

edit flag offensive delete link more

Comments

Thanks a lot Kari for you quick reqponse!

Actually that is just my question that how/when does ROS2 load log4cxx library instead of loading it by the user?

Rongcai gravatar image Rongcai  ( 2021-11-07 01:21:48 -0500 )edit

Hi! I looked it up and it looks like ROS2 logging is not built on log4cxx.

Karl gravatar image Karl  ( 2021-11-07 09:54:47 -0500 )edit

Yes, that is just my curious about. It seems depend on the system pre-install it,.

Rongcai gravatar image Rongcai  ( 2021-11-07 21:41:19 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2021-11-04 22:52:05 -0500

Seen: 2,056 times

Last updated: Nov 05 '21