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

Feature Request: Support ROS pointclouds from Ouster 128-beam LIDAR #73

Open
Chambana opened this issue May 28, 2021 · 1 comment
Open

Comments

@Chambana
Copy link

Ouster's OS0-128 outputs 128 lines of resolution in a standard pointcloud2 msg on the ROS topic, "/os_cloud_node/points". Per the link below, the ROS node assumes the standard Velodyne pointcloud topic and 16/32/64 projections. Feature request is to add support for 128-beam ROS pointclouds on arbitrary topics.

int main(int argc, char* argv[]) {
TCLAP::CmdLine cmd(
"Subscribe to /velodyne_points topic and save clusters to disc.", ' ',
"1.0");
TCLAP::ValueArg<int> angle_arg(
"", "angle",
"Threshold angle. Below this value, the objects are separated", false, 10,
"int");
TCLAP::ValueArg<int> num_beams_arg(
"", "num_beams", "Num of vertical beams in laser. One of: [16, 32, 64].",
true, 0, "int");
cmd.add(angle_arg);
cmd.add(num_beams_arg);
cmd.parse(argc, argv);
Radians angle_tollerance = Radians::FromDegrees(angle_arg.getValue());
std::unique_ptr<ProjectionParams> proj_params_ptr = nullptr;
switch (num_beams_arg.getValue()) {
case 16:
proj_params_ptr = ProjectionParams::VLP_16();
break;
case 32:
proj_params_ptr = ProjectionParams::HDL_32();
break;
case 64:
proj_params_ptr = ProjectionParams::HDL_64();
break;

@niosus
Copy link
Member

niosus commented Jun 2, 2021

Thanks for the suggestion! I will not have the time to work on this, but I am happy to review a PR about it.

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

No branches or pull requests

2 participants