personalrobotics / ada_feeding

Robot-assisted feeding demos and projects for the ADA robot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[ROS2] `create_action_servers.py` should set all behaviors' logger to the node's logger

amalnanavati opened this issue · comments

Currently, the create_move_to_tree function is in charge of setting every behaviors logger to the node's logger. But it is easy to forget to do so, and if we use an idiom, it becomes unwieldy to do so for all children of the idiom.

Instead, create_action_servers.py should iterate over the tree as part of setting it up and set every behaviors logger to the node's logger. This also makes sense because create_action_servers.py is the layer where the ROS connection necessarily comes in, not lower layers.