message class pcl/ModelCoefficients not built, which PCL? [closed]

asked 2012-08-22 04:01:30 -0500

felix k gravatar image

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 /seg_plane_model_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
std_msgs/Header header
  uint32 seq
  time stamp
  string frame_id
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.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2015-09-21 02:29:13.582285


Which tutorial page are you using?

joq gravatar image joq  ( 2012-08-22 04:52:16 -0500 )edit

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

felix k gravatar image felix k  ( 2012-08-23 00:00:36 -0500 )edit

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?



chyphen gravatar image chyphen  ( 2013-06-07 04:17:01 -0500 )edit

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?

felix k gravatar image felix k  ( 2013-06-10 00:07:10 -0500 )edit

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.

chyphen gravatar image chyphen  ( 2013-06-10 09:54:13 -0500 )edit