[Rock-dev] changes for base::type::PointCloud

Alexander Duda Alexander.Duda at dfki.de
Mon Oct 10 14:36:15 CEST 2011


I looked into the base type point cloud and I missing the ability to
save informations for each point. Because of that and a different naming
conventions than we use, I would like to do the following changes:

* rename pointcloud.h to point_cloud.h 
* rename base::samples::Pointcloud to base::samples::PointCloud 
* move base::Point to base::samples::point_cloud::Point
(otherwise Point should go into its own header)
* add a new vector field for channel informations

OLD VERSION:
namespace base {
    typedef base::Vector3d    Point;

    namespace samples {
        struct Pointcloud
        {
            Time time;

            std::vector<base::Point> points;
        };
    }
}

NEW VERSION:
namespace base{ namespace samples {
    namespace point_cloud {
        struct Channel
        {
            std::string name;
            std::vector<float> values;
        };
        typedef base::Vector3d Point;
    }

    struct PointCloud
    {
        base::Time time;
        std::vector<point_cloud::Point> points;
        std::vector<point_cloud::Channel> channels;
    };
}}

I talked to the guys which are using the type and it is fine for them
therefore I am going to push the changes at the end of the day if no one
is yelling ;-).

Alex







-- 
Dipl.-Ing. Alexander Duda 
Unterwasserrobotik

DFKI Bremen
Robotics Innovation Center
Robert-Hooke-Straße 5
28359 Bremen, Germany

Phone: +49 (0)421 178-456620
Fax:   +49 (0)421 178-454150
E-Mail: alexander.duda at dfki.de

Weitere Informationen: http://www.dfki.de/robotik
-----------------------------------------------------------------------
Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster
(Vorsitzender) Dr. Walter Olthoff
Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
Amtsgericht Kaiserslautern, HRB 2313
Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
USt-Id.Nr.:    DE 148646973
Steuernummer:  19/673/0060/3



More information about the Rock-dev mailing list