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

💡 [REQUEST] - Log message should be passed to web gui for debugging purposes #98

Open Oberacda opened 1 month ago

Oberacda commented 1 month ago

Implementation PR

No response

Reference Issues

No response

Summary

Some nodes (e.g message_from_dict) currently use logging to display error messages during ticks and only return the FAILED status on error. While the failure appears in the Web UI, the log message does not. This makes it hard to debug why the node just failed.

Basic Example

  1. Create a new tree
  2. Add a Sequence node and a Constat & MessageFromDict node below.
  3. In the constant, leave out some files required for the selected message.
  4. The MessageFromDict node will fail, but the information on why will not be shown in the UI.

Drawbacks

We might need to change how log messages are processed in the library. Not only using rclpy.logging and publishing them to the web GUI. This will add additional overhead.

Unresolved questions

No response