Floating point values set by Script
cause Floating point truncated
when passed to BT::InputPort<float>
#506
Labels
bug
Something isn't working
Hi, I'm using BehaviorTree.cpp version 4.0.1.
According to the docs
However, I'm noticing a different behavior between the
Script
andSetBlackboard
nodes when setting floating point values.In particular, it looks like the following two blocks yield different results
Passing
data
to aBT::InputPort<float>
results in aFloating point truncated
error if using the script, while it works if using the set blackboard.It looks like the script sets the value to a
double
(indeed if I change the input port to be double, the exception goes away).Is this behavior expected? Should there be a way to specify floats using the scripting language?
See a minimal reproducible example
The text was updated successfully, but these errors were encountered: