[ros-users] rosjava and message constants
Máté WOLFRAM
mate.wolfram at student.tugraz.at
Fri Dec 24 09:07:42 UTC 2010
Hi,
there seems to be a problem regarding rosjava and constants in ROS messages.
Consider for example this example for a constant, taken from the ROS Wiki:
string FOO=foo
The rosjava implementation seems to turn this into something like
public static final String FOO = foo;
, omitting the quotation marks and therefore generating code that won't
compile. The C++ implementation on the other hand does add the necessary
quotes. Wouldn't be that much of a problem, but by making the generated
message work for rosjava:
string FOO="foo"
, the C++ implementation will still add the quotes, so the value of the
constant results in "\"foo\"".
kind regards
Máté
--
Máté WOLFRAM, Bakk.rer.soc.oec.
Homepage | http://mate.wolfram.or.at
Member of KickOffTUG | http://kickofftug.tugraz.at
More information about the ros-users
mailing list