vusonbmt / rosjava

Automatically exported from code.google.com/p/rosjava
0 stars 0 forks source link

_TYPE and _DEFINITION should be defined in org.ros.internal.message.Message #118

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This way, writing components that publish/subscribe arbitrary topics would be 
possible using generics, i.e., 

class ATalker<R extends org.ros.internal.message.Message>
...
Publisher<R extends org.ros.internal.message.Message> publisher = 
connectedNode.newPublisher(this.name, R._TYPE);
...

Which fails currently, due to _TYPE and _DEFINITION being unknown in 
org.ros.internal.message.Message.

Best regards,
Andreas

Original issue reported on code.google.com by wortmann...@gmail.com on 31 May 2012 at 2:15

GoogleCodeExporter commented 9 years ago
Although this might require to resolve basic ros_msg data types (e.g. bool) to 
complex java types (e.g. Boolean). 

Plus: I didn't want to enter a defect but a suggestion; sorry.

Original comment by wortmann...@gmail.com on 31 May 2012 at 2:44