Page 1 of 1

Ros2 subscriber problem when simulation starts

Posted: 13 Dec 2019, 22:11
by Valenorf
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!

Re: Ros2 subscriber problem when simulation starts

Posted: 17 Dec 2019, 16:48
by Valenorf
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.