|
Boost Users : |
Subject: Re: [Boost-users] Default weight map doesn't work for weighted grid graph in A-star search
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2010-07-14 22:12:56
> It doesn't work with a filtered_graph. Â Adding the following line:
>
> boost::property_map<filtered_grid, boost::vertex_index_t>::const_type fpm = get(boost::vertex_index, m_barrier_grid);
>
> produces this error:
>
> g++ -g -I/src/boost-trunk -Wall -Werror -O3 Â -c -o astar_maze.o astar_maze.cpp
> /src/boost-trunk/boost/graph/graph_traits.hpp: In instantiation of âboost::vertex_property_type<grid>â:
> /src/boost-trunk/boost/graph/filtered_graph.hpp:226: Â instantiated from âboost::vertex_property_type<filtered_grid>â
> /src/boost-trunk/boost/graph/properties.hpp:202: Â instantiated from âboost::detail::vertex_property_map<filtered_grid, boost::vertex_index_t>â
> /src/boost-trunk/boost/graph/properties.hpp:251: Â instantiated from âboost::property_map<filtered_grid, boost::vertex_index_t>â
> astar_maze.cpp:234: Â instantiated from here
> /src/boost-trunk/boost/graph/graph_traits.hpp:226: error: no type named âvertex_property_typeâ in âclass gridâ
>
> Which is the same error I was seeing before inside the astar_search call.Â
Could you please try this code and the astar_search call with r64035 from
the trunk?
-- Jeremiah Willcock
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net