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

Publisher publishing message only on state/msg change

asked 2021-11-02 05:15:25 -0500

BhanuKiran.Chaluvadi gravatar image

Hi,

Is it possible to publish ros2 message only on state change ? I was wondering if there is any flag that can set while creating a publisher, so that it will automatically handle publishing only on state change. I can always save the previously published message locally and compare them before publishing but just wondering if there is a better way.

Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-11-02 17:48:34 -0500

Geoff gravatar image

No, there is no built-in way to do that. You will need to compare the messages yourself.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2021-11-02 05:15:25 -0500

Seen: 164 times

Last updated: Nov 02 '21