Ask Your Question
0

ROS2 ROS_ERROR_STREAM equivalent

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

Comments

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

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

1 Answer

Sort by ยป oldest newest most voted
1

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: http://docs.ros2.org/crystal/api/rclc...

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: https://github.com/ros2/rclcpp/issues

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

2 followers

Stats

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

Seen: 119 times

Last updated: Dec 17 '18