Robotics StackExchange | Archived questions

message class pcl/ModelCoefficients not built, which PCL?

I'm running the ROS-adapted pcl tutorial "Planar model segmentation" and I got no errors from that node itself. But when trying to look at what the output is, rostopic gives me:

$ rostopic echo -n 1 /segplanemodel_coeff 
ERROR: Cannot load message class for [pcl/ModelCoefficients]. Are your messages built?

So when looking for that message I see and nearly empty package and never build messages:

felix@:~$ roscd pcl
felix@:/opt/ros/fuerte/share/pcl$ l
manifest.xml  msg/
felix@:/opt/ros/fuerte/share/pcl$ l msg
ModelCoefficients.msg  PointIndices.msg  PolygonMesh.msg  Vertices.msg
felix@:/opt/ros/fuerte/share/pcl$ rosmsg show pcl/ModelCoefficients
stdmsgs/Header header
  uint32 seq
  time stamp
  string frameid
float32[] values

felix@:/opt/ros/fuerte/share/pcl$ rosmsg md5 pcl/ModelCoefficients Cannot locate [pcl/ModelCoefficients]

  1. How do I have to install PCL to get it working, and what about those duplicated stacks/packages pcl and perception_pcl?

  2. There are inconsistencies, e.g. you only reach the pcl page by typing it. So, if pcl is not meant do be a package anymore, why do I have that directory?

  3. What is the deb pkg ros-fuerte-perception for?

I just replaced <depend package="pcl"/> with <rosdep name="pcl"/> in my tutorial node, but that doesn't change anything.

Asked by felix k on 2012-08-22 04:01:30 UTC

Comments

Which tutorial page are you using?

Asked by joq on 2012-08-22 04:52:16 UTC

pcl/Tutorials, and I see perception_pcl/Tutorials is just a link to the other.

Asked by felix k on 2012-08-23 00:00:36 UTC

Hi, Felix:

I ran into the same problem with message class for [pcl/ModelCoefficients]

ERROR: Cannot load message class for [pcl/ModelCoefficients]. Are your messages built?

Have you found the solution or walk-around?

Thanks,

CC

Asked by chyphen on 2013-06-07 04:17:01 UTC

No, sorry. Since PCL should be a system dependency in fuerte, but I don't know where the message should be. Have you checked whether the pcl tutorials were updated?

Asked by felix k on 2013-06-10 00:07:10 UTC

I was not working on my own code, not pcl tutorial. I did make it work by adding rosbuild_genmsg() into CMakeList.txt that may cause the message class to be built. My take is that each message class only needs to be built once. Try it out to see if it helps.

Asked by chyphen on 2013-06-10 09:54:13 UTC

Answers