Ask Your Question


asked 2018-12-17 03:01:09 -0500

Flautz gravatar image

Is there an equivalent to the stream log functions in ROS1?

I only found the RCLCPP_ERROR which is an equivalent for the ROS_ERROR.

edit retag flag offensive close merge delete


Unless something has changed since I last looked at the macros, there's no equivalent for this in ROS 2.

allenh1 gravatar image allenh1  ( 2018-12-17 09:51:52 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2020-01-29 15:25:04 -0500

clyde gravatar image

Available in ROS2 as of Eloquent.

edit flag offensive delete link more

answered 2018-12-17 15:49:36 -0500

tfoote gravatar image

The stream operators have not been implemented in rclcpp yet.

You can get an overview of the logging API here:

If that's something that you'd like to see we'd be happy to have a contribution to add support for stream style macros. Before you implement too much I suggest opening a ticket to discuss the best approach here:

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2018-12-17 03:01:09 -0500

Seen: 1,076 times

Last updated: Jan 29 '20