ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

When the model is configured in SolidWorks, if run automatically, it will place reference coordinate systems at the global origin of the assembly and at the joint origins of each link. When spawned in Gazebo, this global origin is what aligns with the coordinates specified in the launch file. The global origin is taken to be the origin of the assembly in SW, which generally isn't located anywhere meaningful. In SolidWorks, you should either move the model to align with the global_origin reference coordinate system or create a new reference coordinate system closer to where you want the global origin to be.

When It's not explicitly stated, but it sounds like you are using the SolidWorks to URDF plugin. Assuming this, when your model is configured in SolidWorks, if run automatically, it SolidWorks the plugin will place reference coordinate systems at the global origin of the assembly and at the joint origins of each link. When spawned in Gazebo, this global origin is what aligns with the coordinates specified in the launch file. The global origin is taken to be the origin of the assembly in SW, which generally isn't located anywhere meaningful. In SolidWorks, you should either move the model to align with the global_origin reference coordinate system or create a new reference coordinate system closer to where you want the global origin to be.