Ros2 subscriber problem when simulation starts

Report crashes, strange behaviour, or apparent bugs
Post Reply
Valenorf
Posts: 5
Joined: 10 May 2017, 21:35

Ros2 subscriber problem when simulation starts

Post by Valenorf » 13 Dec 2019, 22:11

Hi! I have a problem with the ros2 interface of CoppeliaSim, and i don't know if it is a Ros2 related problem, of the interface or mine.

If i launch the subscriber, and then start the simulation, the ros node exits, and i need to relaunch it. If i follow the opposite order, everything is ok.
This is not generally a problem, but in my case (two wheels balancing robot), it is since the robot starts immediately to fall.

Thank you!

Valenorf
Posts: 5
Joined: 10 May 2017, 21:35

Re: Ros2 subscriber problem when simulation starts

Post by Valenorf » 17 Dec 2019, 16:48

I simply fix just ignoring the first callback in the subscriber. Maybe there is some problem in the first message, and some NULL pointer going on.

Post Reply