fzi-forschungszentrum-informatik / ros2_ros_bt_py

This is a Behavior Tree library meant to be an alternative to SMACH, FlexBE and the like. It includes a ReactJS-based web GUI and all the building blocks you need to build moderately advanced mission control Behavior Trees without writing a single line of code!
BSD 3-Clause "New" or "Revised" License
24 stars 6 forks source link

🐛 [BUG] - Float values with no decimal place lead to type error #83

Open Oberacda opened 2 months ago

Oberacda commented 2 months ago

Description

When using a float value in a node that has no decimal place, the ros2 serialization throws an error as the value is converted to an int and does no longer match the required float type.

Reproduction URL

https://github.com/fzi-forschungszentrum-informatik/ros2_ros_bt_py

Reproduction steps

1. Use a constant node.
2. Set the type to float.
3. Enter the value 0.0 for the number.
4. Start ticking the tree.

Screenshots

No response

Logs

No response

ROS2 Version

Rolling, Humble, Iron, Foxy

OS

Ubuntu 22.04

nspielbau commented 2 months ago

The error happens while entering the number/ saving in the JSON editor, further investigation needed

Oberacda commented 1 month ago

This must be fixed in the Web-UI as it is an error regarding the JSON editor.