Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VPointCloud and VPoint not found #554

Open
LightwishWONG opened this issue Jan 11, 2025 · 0 comments
Open

VPointCloud and VPoint not found #554

LightwishWONG opened this issue Jan 11, 2025 · 0 comments
Labels

Comments

@LightwishWONG
Copy link

LightwishWONG commented Jan 11, 2025

  • OS: Ubuntu 20.04
  • ROS Version: noetic
  • Installed by running sudo apt-get install ros-noetic-velodyne*

Hi everyone. I had compiling errors about VPoint and velodyne_rawdata::VPointCloud when building a project. The errors said ‘VPoint’ does not name a type and ‘velodyne_rawdata::VPointCloud’ has not been declared, from the following code:

#include "velodyne_pointcloud/calibration.h"
#include "velodyne_msgs/VelodyneScan.h"
#include "velodyne_pcl/point_types.h"
#include <velodyne_pointcloud/rawdata.h>

typedef VPoint PointT;

velodyne_msgs::VelodyneScan::ConstPtr scan = m.instantiate<velodyne_msgs::VelodyneScan>();
velodyne_rawdata::VPointCloud::Ptr
  outMsg(new velodyne_rawdata::VPointCloud());
outMsg->header.stamp = pcl_conversions::toPCL(scan->header).stamp;
outMsg->header.frame_id = scan->header.frame_id;
outMsg->height = 1;

I cloned the velodyne source code (master branch) and searched these two variables, and found in a changelog that moved definition of VPoint and VPointCloud back to namespace rawdata in rawdata.h. But I didn't find them in velodyne_pointcloud/rawdata.h or anywhere else in the source code. I've googled it but supprisingly few related discussions. I'm a beginner of the velodyne library and have no idea what I missed. Could anyone help me? Really appreciate it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant