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

How to use the recursive function in ros2

asked 2022-03-04 11:20:28 -0600

Flash gravatar image

updated 2022-03-04 15:23:14 -0600

Hi all,
I have a while loop that gets triggered when a msg is received on a topic. So while it's looping in while loop my node is not receiving any msg from any other topics. so that my looping can work updated data. FYI when I mean a while loop I am using recursive function.

Let me know if you want any sample code or demo code for it.

Thanks for your help,

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-03-25 09:56:06 -0600

Flash gravatar image

updated 2022-03-25 09:57:06 -0600

I used the threading function in python to solve the problem with the recursive function not sure if there was any better way to do that.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2022-03-04 11:20:28 -0600

Seen: 222 times

Last updated: Mar 25 '22