[ros-users] running ROS unit tests -- error running PCL unit test suite?

Radu Bogdan Rusu rusu at willowgarage.com
Fri Aug 13 22:05:19 UTC 2010


Hi Michael,

We're testing a few things in trunk for registering point types better. I fixed the error for now -- please check r31741 
and let us know if that works.

Thanks,
Radu.

On 08/13/2010 02:36 PM, Michael Styer wrote:
> Hello,
>
> I'm working on learning the unit testing procedure used in ROS. So, if I
> understand correctly, running the tests for a particular package
> (assuming it has tests) just means
>
> roscd<package_name>
> make test
>
> First of all, is that the right way to do it? Or is there a rosmake
> invocation I should use?
>
> Then, that works in my installation for most packages, but for PCL I get
> a strange compilation error:
>
> [ 68%] Building CXX object test/CMakeFiles/test_io.dir/test_io.o
> /home/stm1pal/ros/stacks/point_cloud_perception/pcl/test/test_io.cpp:272: error: redefinition of ‘struct REGISTERED_POINT_TYPE_MUST_BE_PLAIN_OLD_DATA272’
> /home/stm1pal/ros/stacks/point_cloud_perception/pcl/include/pcl/point_types.h:270: error: previous definition of ‘struct REGISTERED_POINT_TYPE_MUST_BE_PLAIN_OLD_DATA272’
> /home/stm1pal/ros/stacks/point_cloud_perception/pcl/test/test_io.cpp:270: error: invalid type in declaration before ‘;’ token
> /home/stm1pal/ros/stacks/point_cloud_perception/pcl/test/test_io.cpp:270: error: conflicting declaration ‘typedef int mpl_assert_arg272’
> /home/stm1pal/ros/stacks/point_cloud_perception/pcl/include/pcl/point_types.h:272: error: ‘mpl_assert_arg272’ has a previous declaration as ‘typedef struct REGISTERED_POINT_TYPE_MUST_BE_PLAIN_OLD_DATA272 mpl_assert_arg272’
> /home/stm1pal/ros/stacks/point_cloud_perception/pcl/test/test_io.cpp:270: error: conflicting declaration ‘mpl_assertion_in_line_272’
> /home/stm1pal/ros/stacks/point_cloud_perception/pcl/include/pcl/point_types.h:270: error: ‘mpl_assertion_in_line_272’ has a previous declaration as ‘<anonymous enum>  mpl_assertion_in_line_272’
> make[4]: *** [test/CMakeFiles/test_io.dir/test_io.o] Error 1
> make[4]: Target `test/CMakeFiles/test_io.dir/build' not remade because
> of errors.
>
> I'll keep looking into it, but does anyone know what might be causing
> that? For reference I'm pulling pcl from
>
> https://code.ros.org/svn/ros-pkg/stacks/point_cloud_perception/trunk/pcl
>
> I have the latest revision (31739). Also let me know if that's not the
> right repo.
>
> Thanks!
>
> Mike
>
>
>
>
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users

-- 
| Radu Bogdan Rusu | http://rbrusu.com/



More information about the ros-users mailing list