KCL-Planning / ROSPlan

The ROSPlan framework provides a generic method for task planning in a ROS system.
http://kcl-planning.github.io/ROSPlan
BSD 2-Clause "Simplified" License
359 stars 158 forks source link

Sensing Interface crashing #307

Closed m312z closed 3 years ago

m312z commented 3 years ago

Sensing interface crashes when a functions file is not provided, even when there are no external Python functions required. Problem seems to be initialisation of self.scripts: https://github.com/KCL-Planning/ROSPlan/blob/981cfc1b3ef71561c9e34fd73a579c22364cef24/rosplan_sensing_interface/scripts/sensing_interface.py#L79

m312z commented 3 years ago

@gerardcanal

The following lines (and a few that follow them) depend upon functions path being included and should be wrapped in a "if self.scipts":

https://github.com/KCL-Planning/ROSPlan/blob/981cfc1b3ef71561c9e34fd73a579c22364cef24/rosplan_sensing_interface/scripts/sensing_interface.py#L289

https://github.com/KCL-Planning/ROSPlan/blob/981cfc1b3ef71561c9e34fd73a579c22364cef24/rosplan_sensing_interface/scripts/sensing_interface.py#L341

https://github.com/KCL-Planning/ROSPlan/blob/981cfc1b3ef71561c9e34fd73a579c22364cef24/rosplan_sensing_interface/scripts/sensing_interface.py#L350

https://github.com/KCL-Planning/ROSPlan/blob/981cfc1b3ef71561c9e34fd73a579c22364cef24/rosplan_sensing_interface/scripts/sensing_interface.py#L374

https://github.com/KCL-Planning/ROSPlan/blob/981cfc1b3ef71561c9e34fd73a579c22364cef24/rosplan_sensing_interface/scripts/sensing_interface.py#L393