Boost logo

Geometry :

Subject: Re: [geometry] R-tree query nearest nodes with torus distance strategy
From: Adam Wulkiewicz (adam.wulkiewicz_at_[hidden])
Date: 2015-04-05 19:31:09


2015-04-05 5:58 GMT+02:00 Andrew Hundt <athundt_at_[hidden]>:

>
> // use boost::array as the type we will adapt
> #include <boost/geometry/geometries/adapted/boost_array.hpp>
> // ...
>
> typedef boost::array<double,6> ArmPos;
>

<snip>

>
> The key line of the error I got, which I didn't expect was:
>
> /home/ahundt/catkin_ws/build/cs436/assignment3/boost-prefix/include/boost/geometry/core/coordinate_system.hpp:42:5: error: no matching function for call to ‘assertion_failed(mpl_::failed************ (boost::geometry::traits::coordinate_system<boost::array<double, 6ul>, void>::NOT_IMPLEMENTED_FOR_THIS_POINT_TYPE::************)(mpl_::assert_::types<boost::array<double, 6ul>, mpl_::na, mpl_::na, mpl_::na>))’
>
>
You probably didn't adapt ArmPos to Point concept properly. You should call
e.g.:

BOOST_GEOMETRY_REGISTER_BOOST_ARRAY_CS(cs::cartesian)

see:
http://www.boost.org/doc/libs/1_57_0/libs/geometry/doc/html/geometry/reference/adapted/boost_array.html

or use:

model::point<double, 6, cs::cartesian>

instead.

Regards,
Adam



Geometry list run by mateusz at loskot.net