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

Always use `to_str()` in urscriptify #37

Closed fmauch closed 3 years ago

fmauch commented 3 years ago

If the target variable (on rosbridge side) is a non-numeric variable, always use to_str() when creating the json string. This won't harm if we use a string to store inside the string but it will enable storing integer values as strings.

Whether it will be treated as string or numeric value on the rosbridge side / json interpreter is only determined by the fact, whether it has surrounding quotes or not.

Fixes #1