From: Mark M. <mm...@ri...> - 2011-08-22 19:38:36
|
You can either create a CompoundStateSpace of RealVectorSpace with different weights for each sub-state space or subclass an existing state space as you suggested. On Aug 22, 2011, at 2:02 PM, Gustavo Goretkin wrote: > What's the proper way to define a new distance metric for a > StateSpace? For example, I'd like to use a Euclidean metric, but with > weights on each dimension, what could I do? > > I thought about subclassing RealVectorSpace, but I thought that there > might be away to set a pointer to a distance function (just as is done > for the propagate function in the control planners). > > Thanks, > Gustavo > > ------------------------------------------------------------------------------ > uberSVN's rich system and user administration capabilities and model > configuration take the hassle out of deploying and managing Subversion and > the tools developers use with it. Learn more about uberSVN and get a free > download at: http://p.sf.net/sfu/wandisco-dev2dev > _______________________________________________ > ompl-users mailing list > omp...@li... > https://lists.sourceforge.net/lists/listinfo/ompl-users > -- Mark Moll |