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

ROS2 ROS_ERROR_STREAM equivalent

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

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 image allenh1  ( 2018-12-17 09:51:52 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
2

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

clyde gravatar image

Available in ROS2 as of Eloquent. https://github.com/ros2/rclcpp/pull/926

edit flag offensive delete link more
2

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

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

Question Tools

2 followers

Stats

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

Seen: 3,028 times

Last updated: Jan 29 '20