Code Monkey home page Code Monkey logo

osgpcl's Issues

Error in setting unique state set

I believe line 128 of point_cloud.hpp is incorrect.
I believe this:
geom->setStateSet(stateset_);
should be this:
geom->setStateSet(ss);

Given a new stateset ss is being created if unique_stateset is true.

Problems with OSG

Hi, I managed to compile osgpcl with the new version of OSG (3.2.0) and PCL (1.7), but that took me a while. The first problem I found was related to sensor_msgs in PCL (github version). The second one was that some primitives from the osg::Geometry class are now deprecated, so I needed to explicitly modify many source files to be consistent with the changes done in OSG.

The solution is rather simple but takes some time. First of all, sensor_msgs/PoindCloud2 does not exist. Now the file is PCLPointCloud2 and the name of the class is pcl::PCLPointCloud2.

Regarding the osg::Geometry class, BIND_PER_PRIMITIVE is deprecated. In order to use it in your code you need to make use of the deprecated_osg namespace. Once you add tha namespace it is also required to change the way the geometry objects are created.

Usually, you create these objects such as osg::Geometry ...etc. The simplest way of fixing this is to create these objects just like "Geometry *geom = new Geometry(..)" In this way, the appropriate methods will be invoked (those from the deprecated_osg namespace).

This is all. I can send you the modified version of osgpcl if you wish.

Best regards,
German Ros

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.