instar-robotics / papyrus

Papyrus is the front end GUI that generates neural scripts that can be executed by kheops
GNU General Public License v3.0
1 stars 0 forks source link

Group all ROS calls in the ROSSession object #17

Closed nschoe closed 5 years ago

nschoe commented 5 years ago

The ROSSession class was made for specifically to interact with ROS. Currently, the Script class has a method queryScriptStatus in which it instanciates a ROS node handle, and make service call etc. It would be better if the ROSSession implemented to logic to do this, and exposed a queryScriptStatus() function that Script would simply call.

Anything that needs to make ROS service calls should use a pointer to this ROSSession and use its exposed functions.