armarx::navigation::util::geometry Namespace Reference

This file is part of ArmarX. More...

Typedefs

using point_type = boost::geometry::model::d2::point_xy< float >
 
using polygon_type = boost::geometry::model::polygon< point_type >
 

Functions

float computeDistance (const std::vector< polygon_type > &obstacles, const Eigen::Vector2f &pt)
 
point_type toPoint (const Eigen::Vector2f &pt)
 
polygon_type toPolygon (const std::vector< Eigen::Vector2f > &hull)
 

Detailed Description

This file is part of ArmarX.

ArmarX is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

ArmarX is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Author
Fabian Reister ( fabian dot reister at kit dot edu )
Date
2023

Typedef Documentation

◆ point_type

using point_type = boost::geometry::model::d2::point_xy<float>

Definition at line 33 of file geometry.h.

◆ polygon_type

using polygon_type = boost::geometry::model::polygon<point_type>

Definition at line 34 of file geometry.h.

Function Documentation

◆ computeDistance()

float computeDistance ( const std::vector< polygon_type > &  obstacles,
const Eigen::Vector2f &  pt 
)

Definition at line 12 of file geometry.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toPoint()

point_type toPoint ( const Eigen::Vector2f &  pt)

Definition at line 42 of file geometry.cpp.

+ Here is the caller graph for this function:

◆ toPolygon()

polygon_type toPolygon ( const std::vector< Eigen::Vector2f > &  hull)

Definition at line 30 of file geometry.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: