Ros2 subscriber problem when simulation starts

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

Ros2 subscriber problem when simulation starts

Post 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!

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

Re: Ros2 subscriber problem when simulation starts

Post 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.

Post Reply