ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Cannot compile a msg file

asked 2019-08-10 04:59:38 -0600

EdwardNur gravatar image

I want to compile a ros2 msg file and my packages.xml looks like this:

<?xml version="1.0"?>
<?xml-model href="" schematypens=""?>
<package format="3">
  <description>TODO: Package description</description>
  <maintainer email="">abyl</maintainer>
  <license>TODO: License declaration</license>





And part of my CMakeLists:

find_package(ament_cmake REQUIRED)
find_package(builtin_interfaces REQUIRED)
find_package(rosidl_default_generators REQUIRED)


  DEPENDENCIES builtin_interfaces std_msgs geometry_msgs

But in the end I am getting this error:

 Error processing 'int32 refId' of 'rtabmap_ros/Info': 'the field name
  'refId' is not valid'

Where the Info.msg is:

Header header

int32 refId
int32 loopClosureId
int32 proximityDetectionId

Also, I have tried to look for the pcl_ros in ROS2 but did not find anything. Any idea how people deal with it in ROS2?

edit retag flag offensive close merge delete



Please try lower case names for the message parameters

ct2034 gravatar image ct2034  ( 2019-08-10 09:43:54 -0600 )edit

@ct2034 if this works, that is a big one bullshit in ROS2

EdwardNur gravatar image EdwardNur  ( 2019-08-10 12:02:06 -0600 )edit

@ct2034, yeap, it worked. I think I should go for a paid alternative, that student project is a non sense

EdwardNur gravatar image EdwardNur  ( 2019-08-10 12:03:20 -0600 )edit

Does your student project make no sense? Sorry to hear that but I guess we can not help you with that.

ct2034 gravatar image ct2034  ( 2019-08-10 12:36:17 -0600 )edit

@ct2034 Yeah I know, just raging on my student project...

EdwardNur gravatar image EdwardNur  ( 2019-08-10 13:13:16 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2019-08-10 12:18:55 -0600

tfoote gravatar image

Field names are required to be lowercase alphanumeric with underscores to be able to generate into all the different languages.

Full details are at

edit flag offensive delete link more

Question Tools



Asked: 2019-08-10 04:59:38 -0600

Seen: 1,077 times

Last updated: Aug 10 '19