float type modelTpl fails when calling pinocchio::urdf::buildModel #2038
Answered
by
jcarpent
modu-robotics
asked this question in
Q&A
-
Bug descriptionWhen I call
I think this is a bug since Expected behaviorCreate float type model and load urdf file. Reproduction stepsSteps to reproduce the behavior:
System
|
Beta Was this translation helpful? Give feedback.
Answered by
jcarpent
Aug 19, 2023
Replies: 1 comment
-
URDF parsers (urdfdom) only consider double types. ModelTpl<double> model_double;
// load the model stored in model_double
ModelTpl<float> model_float = model_double.cast<float>(); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jcarpent
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: