jfabry / LiveRobotProgramming

Live Robot Programming
http://pleiad.cl/lrp
8 stars 3 forks source link

PhaROS bridge: users may confuse the use of created subs & pubs #157

Open mcamp opened 7 years ago

mcamp commented 7 years ago

When users create a sub or pub, the system allows them to use that name in any way. It is necessary to give some signal to the user that, a pub variable, can not be as a sub. For example:

{pub -> 'some_topic'} (machine bar (state foo (onentry [robot pub]) ;; this is an error, pub does not exist as a getter, only as a 'setter' ) )

We should mark this kind of errors