UniversalRobots / Universal_Robots_ROS_as_a_Service_URCap

This URCap makes a universal robot part of a ROS system by making ROS calls available inside Polyscope through the rosbridge.
Apache License 2.0
12 stars 3 forks source link

Use autogenerated prefix from urcap API for function naming #42

Open fmauch opened 3 years ago

fmauch commented 3 years ago

To further "uniquify" function names in the generated script code we could use autogenerated unique prefixes from the URCap API. I currently don't know exactly how this could be done, but there should be mechanisms inside the API for this.

EbbeFuglsang commented 3 years ago

In the API you have the option to register your script function with the addFunction method in the FunctionModel interface. From the returned Function object you can use the getName method for reading the assigned name.