Open GouthamG14 opened 7 months ago
hm...I haven't tried detaching a screw joint before. Perhaps you could also test with the HarnessPlugin?
You can try replacing prismatic
on the following line with screw
and see what happens:
but in order to debug a segmentation fault; we would need a backtrace from gdb
to see which code was being executed when it failed
include <gazebo/gazebo.hh>
include <gazebo/physics/physics.hh>
namespace gazebo { class DetachJoint : public ModelPlugin { public: void Load(physics::ModelPtr _model, sdf::ElementPtr _sdf) { // Make sure the model pointer is valid if (!_model) { gzerr << "Invalid model pointer.\n"; return; }
};
GZ_REGISTER_MODEL_PLUGIN(DetachJoint) }