problem with cloud_viewer

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

problem with cloud_viewer

bgldr
Hi,

I receive the following message when I try to run cloud_viewer;


Failed to find a field named: 'rgba'. Cannot convert message to PCL type.
terminate called after throwing an instance of 'pcl::InvalidConversionException'
  what():  Failed to find a field named: 'rgba'. Cannot convert message to PCL type.

I try to change field name from rgb to rgba but this time I see this error;

cloud_viewer: /usr/include/pcl-1.5/pcl/ros/conversions.h:92: void pcl::detail::FieldMapper<PointT>::operator()() [with Tag = pcl::fields::rgba, PointT = pcl::PointXYZRGBA]: Assertion `Data::value == field.datatype' failed.
Aborted (core dumped)

how can I fix this?

Thanks,
BG
Reply | Threaded
Open this post in threaded view
|

Re: problem with cloud_viewer

Sergey
Administrator
Hi burcuguldur,

I see this a duplicate of the question that you have posted some time ago. No one replied, so perhaps you provided too less information.

What is cloud_viewer? Is it a program you wrote yourself or is it some tutorial/app shipped with PCL? What kind of data are you feeding to it?

Regards,
Sergey
Reply | Threaded
Open this post in threaded view
|

Re: problem with cloud_viewer

bgldr
Hi,

I guess so, I didn't have time to work on this since then.  

It was the tutorial .cpp shipped with PCL, I changed it a little bit and now it seems to work.  

Thanks for the reply,
BG


On Wed, Jul 25, 2012 at 2:27 PM, Sergey [via Point Cloud Library (PCL) Users] <[hidden email]> wrote:
Hi burcuguldur,

I see this a duplicate of the question that you have posted some time ago. No one replied, so perhaps you provided too less information.

What is cloud_viewer? Is it a program you wrote yourself or is it some tutorial/app shipped with PCL? What kind of data are you feeding to it?

Regards,
Sergey


If you reply to this email, your message will be added to the discussion below:
http://www.pcl-users.org/problem-with-cloud-viewer-tp4020753p4020760.html
To unsubscribe from problem with cloud_viewer, click here.
NAML



--
Graduate Teaching Assistant

Civil & Environmental Engineering Department
400 Snell Engineering Center
Northeastern University
Boston, MA 02115

office phone: (617) 373-3991
mobile phone: (857) 399-3802
email: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: problem with cloud_viewer

Sergey
Administrator
burcuguldur,

Do you mean that the original tutorial does not work in some cases? You may consider sharing the change that you made with the community, if could help someone to avoid the same problem in future.

Regards,
Sergey
Reply | Threaded
Open this post in threaded view
|

Re: problem with cloud_viewer

bgldr
Sure.

The fields in my point_cloud.pcd are;

FIELDS x y z rgb

so it was not working since the original tutorial .cpp was searching for 'rgba'. 

I changed "pcl::PointCloud<pcl::PointXYZRGBA>::Ptr cloud (new pcl::PointCloud<pcl::PointXYZRGBA>);" to "pcl::PointCloud<pcl::PointXYZRGB>::Ptr cloud (new pcl::PointCloud<pcl::PointXYZRGB>);" and erase both 'viewerOneOff' and viewerPyscho' since I only wanted to view my point cloud.

I am very new to programming so I hope this makes sense. 
BG

On Wed, Jul 25, 2012 at 2:43 PM, Sergey [via Point Cloud Library (PCL) Users] <[hidden email]> wrote:
burcuguldur,

Do you mean that the original tutorial does not work in some cases? You may consider sharing the change that you made with the community, if could help someone to avoid the same problem in future.

Regards,
Sergey


If you reply to this email, your message will be added to the discussion below:
http://www.pcl-users.org/problem-with-cloud-viewer-tp4020753p4020763.html
To unsubscribe from problem with cloud_viewer, click here.
NAML



--
Graduate Teaching Assistant

Civil & Environmental Engineering Department
400 Snell Engineering Center
Northeastern University
Boston, MA 02115

office phone: (617) 373-3991
mobile phone: (857) 399-3802
email: [hidden email]