Bug report
Required Info:
- Operating System:
- ROS2 Version:
- Version or commit hash:
- DDS implementation:
Steps to reproduce issue
cost is created as an uninitialized tensor.
auto && cost = xt::xtensor<float, 1>::from_shape({data.costs.shape(0)});
Some values are filled in, but some are not.
if (num_samples > 0) {
cost[t] = summed_path_dist / num_samples;
}
Some of the garbage values will be NaN.
Expected behavior
Critic scoring should not generate NaN.
Actual behavior
Additional information
I believe the old version filled in 0.0 in this case, but I suspect a large non-zero value makes more sense.
Tell me what the uninitialized value should be and I'll make a PR.
Bug report
Required Info:
Steps to reproduce issue
costis created as an uninitialized tensor.Some values are filled in, but some are not.
Some of the garbage values will be NaN.
Expected behavior
Critic scoring should not generate NaN.
Actual behavior
Additional information
I believe the old version filled in 0.0 in this case, but I suspect a large non-zero value makes more sense.
Tell me what the uninitialized value should be and I'll make a PR.