Public Member Functions | Public Attributes | List of all members
Obstacle Class Reference

#include <rosinljubljana.h>

Public Member Functions

void clearSegments ()
 
 Obstacle (std::string)
 
void setSegments (std::vector< Point_2 >)
 

Public Attributes

std::string name
 name variable for storing name More...
 
std::vector< Point_2 > points
 points variable for storing points More...
 
std::vector< Segment_2 > segments
 segments variable for storing segments More...
 

Detailed Description

Obstacle for robot sensor

Obstacle in defined by set of continuosly connected points in plane.

Definition at line 82 of file rosinljubljana.h.

Constructor & Destructor Documentation

◆ Obstacle()

Obstacle::Obstacle ( std::string  obstacleName)

A conrtructior for obstacle.

Parameters
obstacleNameThe name of obstacle

Definition at line 4 of file rosinljubljana_objects.cpp.

Member Function Documentation

◆ clearSegments()

void Obstacle::clearSegments ( )

Destructor - Cleans up segments and points

Definition at line 23 of file rosinljubljana_objects.cpp.

◆ setSegments()

void Obstacle::setSegments ( std::vector< Point_2 >  points_)

Sets segments of obstacle.

Parameters
pointsPoints of segments

Definition at line 10 of file rosinljubljana_objects.cpp.

Member Data Documentation

◆ name

std::string Obstacle::name

name variable for storing name

Definition at line 110 of file rosinljubljana.h.

◆ points

std::vector<Point_2> Obstacle::points

points variable for storing points

Definition at line 104 of file rosinljubljana.h.

◆ segments

std::vector<Segment_2> Obstacle::segments

segments variable for storing segments

Definition at line 107 of file rosinljubljana.h.


The documentation for this class was generated from the following files:


rosinljubljana
Author(s): Igor Banfi
autogenerated on Mon Feb 24 2020 12:32:36