How to do mimic joints that work in Gazebo?
This question has been asked several times on this site (here and here) as well as on the Gazebo QA site (here and here) but its still not clear to me if mimic joints are supported in Gazebo. Or if they are, how they're suppose to be defined in a URDF.
If I use the mimic tag in the URDF joint and start Rviz, everything works as expected - if I move the parent joint, the child joint moves also. However, when I put the same model in Gazebo, it seems to ignore the mimic tag and only the parent joint moves.
I see that Gazebo has a gearbox type for it's joints, but I'm not sure how I would use that tag in a URDF since URDF joints don't have a gearbox type. If this is probably the right way to do things, could someone explain the basic idea of how to implement that?
Or, is the answer maybe that I should avoid URDF and use SDF for this portion of the robot? If so, can I include an SDF inside a URDF?
Is there a similar way to simulate the Robotiq 2f-85 gripper with Ignition Gazebo? I'm using ROS2 Galactic and Ignition Gazebo Fortress. I've seen that the MimicJointPlugin isn't available for Ignition Gazebo, just for Gazebo Classic.
For the Robotiq 2F gripper, I've actually found a better solution that gets rid of almostall mimic joints: https://github.com/DFKI-NI/mobipick/c... . This is for Gazebo Classic, but perhaps something similar is available for Ignition Gazebo.
Unfortunately, it seems like this solution doesn't work for Ignition Gazebo. Here it says:"[...] kinematic loops are not currently supported." The same is stated here and here. I guess this is the reason.
I'm getting the following error message with Ignition Gazebo Fortress:
Is there another solution that works with Ignition Gazebo?