Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for universal and ball joint in sdf #13

Merged
merged 10 commits into from
Jun 20, 2022
10 changes: 6 additions & 4 deletions sdformat_urdf/src/sdformat_urdf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -494,12 +494,14 @@ sdformat_urdf::convert_joint(const sdf::Joint & sdf_joint, sdf::Errors & errors)
case sdf::JointType::PRISMATIC:
urdf_joint->type = urdf::Joint::PRISMATIC;
break;
case sdf::JointType::INVALID: // Unsupported: fall through to default
case sdf::JointType::BALL: // |
case sdf::JointType::UNIVERSAL: // Unsupported: fall through to floating
case sdf::JointType::BALL: // Will require custom TF publisher
case sdf::JointType::GEARBOX: // |
quarkytale marked this conversation as resolved.
Show resolved Hide resolved
case sdf::JointType::REVOLUTE2: // |
case sdf::JointType::SCREW: // |
case sdf::JointType::UNIVERSAL: // V
case sdf::JointType::SCREW: // V
urdf_joint->type = urdf::Joint::FLOATING;
break;
case sdf::JointType::INVALID:
default:
errors.emplace_back(
sdf::ErrorCode::STRING_READ,
Expand Down