Closed machinekoder closed 6 years ago
Attempted to fix this today by moving robot_model_loader into the JogROSInterface class. If I do that, it must be static, since it's used in creation of the threads. However, robot_model_loader creates its own NodeHandle which requires ros::init() first, so it can't be static. I'm out of ideas for now.
Found a way to do this with pointers. 6e93371
Yes, looks good. Great that you use smart pointers btw.
Robot model is loaded by collision check and the jogging thread, this adds unnecessary loading time.