Skip to content

float type modelTpl fails when calling pinocchio::urdf::buildModel #2038

Answered by jcarpent
modu-robotics asked this question in Q&A
Discussion options

You must be logged in to vote

URDF parsers (urdfdom) only consider double types.
I would advise you to load using the ModelTpl type, and then cast it to float type using:

ModelTpl<double> model_double;
// load the model stored in model_double
ModelTpl<float> model_float = model_double.cast<float>();

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jcarpent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2037 on August 19, 2023 06:30.