Closed surajhpatil closed 4 years ago
Thanks for the report. Would you be willing to make a PR to fix this, and update the tests? I think it's appropriate to add a special case that checks for True
and False
.
It looks like the ROS Python library which parses message definitions supports any Python literal, because it uses ast.literal_eval
, which would only include True/False
and not true/false
: https://github.com/ros/genmsg/blob/1ad8e136cd6311c6af12256fc39362334ca23988/src/genmsg/msg_loader.py#L184-L185
Hey.. yes, would love to submit a pr for this. Will check with test too :+1:
Following
rosMessage
is being passed to rosbagsparsingMessageDefinition
function,The
parsingMessageDefinition
function fails (at line 116) while parsing the above message, because the booleanTrue
andFalse
are not compatible with standard JSONtrue
andfalse
.messageDefinition
is being passed to theparseMessageDefinition
function