Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
world_model::ViewPortHandler Class Reference

WorldModel class provides services for adding the viewports of the next best views to a list and retrieve them. Additionally, it provides services for adding objects, detected by object localization and retrieve them. More...

#include <view_port_handler.hpp>

Public Member Functions

bool processEmptyViewportListServiceCall (asr_world_model::EmptyViewportList::Request &request, asr_world_model::EmptyViewportList::Response &response)
 Removes the whole next best view viewports from list if request.object_type is set to "all" in the other case just the viewports associated with the given object type. More...
 
bool processFilterViewportDependingOnAlreadyVisitedViewportsVisited (asr_world_model::FilterViewportDependingOnAlreadyVisitedViewports::Request &request, asr_world_model::FilterViewportDependingOnAlreadyVisitedViewports::Response &response)
 Filter the objects of the viewport depending on already visited viewports. More...
 
bool processGetViewportListServiceCall (asr_world_model::GetViewportList::Request &request, asr_world_model::GetViewportList::Response &response)
 Returns the whole list of next best view viewports if request.object_type is set to "all" else just the subset which matches the object type given in request.object_type. More...
 
bool processPushViewportServiceCall (asr_world_model::PushViewport::Request &request, asr_world_model::PushViewport::Response &response)
 Pushes a next best view viewport to a list. More...
 
 ViewPortHandler (SettingsPtr settings_ptr)
 Creates a new instance of the ViewPortHandler. More...
 

Static Public Member Functions

static const std::string GetEmptyViewportListServiceName ()
 
static const std::string GetFilterViewportDependingOnAlreadyVisitedViewportsName ()
 
static const std::string GetGetViewportListServiceName ()
 
static const std::string GetPushViewportServiceName ()
 

Private Member Functions

void filterObjectTypesOfViewport (asr_msgs::AsrViewport &viewport_to_filter, const asr_msgs::AsrViewport &filter_viewport)
 

Private Attributes

DebugHelperPtr debug_helper_ptr_
 
std::size_t number_of_all_viewports
 
PoseHelperPtr pose_helper_ptr_
 
SettingsPtr settings_ptr_
 
ViewportListPtr viewport_list_ptr_
 

Detailed Description

WorldModel class provides services for adding the viewports of the next best views to a list and retrieve them. Additionally, it provides services for adding objects, detected by object localization and retrieve them.

Definition at line 57 of file view_port_handler.hpp.

Constructor & Destructor Documentation

world_model::ViewPortHandler::ViewPortHandler ( SettingsPtr  settings_ptr)

Creates a new instance of the ViewPortHandler.

Definition at line 23 of file view_port_handler.cpp.

Member Function Documentation

void world_model::ViewPortHandler::filterObjectTypesOfViewport ( asr_msgs::AsrViewport &  viewport_to_filter,
const asr_msgs::AsrViewport &  filter_viewport 
)
private

Definition at line 117 of file view_port_handler.cpp.

static const std::string world_model::ViewPortHandler::GetEmptyViewportListServiceName ( )
inlinestatic

Definition at line 68 of file view_port_handler.hpp.

static const std::string world_model::ViewPortHandler::GetFilterViewportDependingOnAlreadyVisitedViewportsName ( )
inlinestatic

Definition at line 76 of file view_port_handler.hpp.

static const std::string world_model::ViewPortHandler::GetGetViewportListServiceName ( )
inlinestatic

Definition at line 72 of file view_port_handler.hpp.

static const std::string world_model::ViewPortHandler::GetPushViewportServiceName ( )
inlinestatic

Definition at line 64 of file view_port_handler.hpp.

bool world_model::ViewPortHandler::processEmptyViewportListServiceCall ( asr_world_model::EmptyViewportList::Request &  request,
asr_world_model::EmptyViewportList::Response &  response 
)

Removes the whole next best view viewports from list if request.object_type is set to "all" in the other case just the viewports associated with the given object type.

Parameters
requestthe associated request object of the service call
responsethe associated response object of the service
Returns
the success of the service call.

Definition at line 43 of file view_port_handler.cpp.

bool world_model::ViewPortHandler::processFilterViewportDependingOnAlreadyVisitedViewportsVisited ( asr_world_model::FilterViewportDependingOnAlreadyVisitedViewports::Request &  request,
asr_world_model::FilterViewportDependingOnAlreadyVisitedViewports::Response &  response 
)

Filter the objects of the viewport depending on already visited viewports.

Parameters
requestthe associated request object of the service call
responsethe associated response object of the service call
Returns
the success of the service call.

Definition at line 95 of file view_port_handler.cpp.

bool world_model::ViewPortHandler::processGetViewportListServiceCall ( asr_world_model::GetViewportList::Request &  request,
asr_world_model::GetViewportList::Response &  response 
)

Returns the whole list of next best view viewports if request.object_type is set to "all" else just the subset which matches the object type given in request.object_type.

Parameters
requestthe associated request object of the service call
responsethe associated response object of the service
Returns
the success of the service call.

Definition at line 72 of file view_port_handler.cpp.

bool world_model::ViewPortHandler::processPushViewportServiceCall ( asr_world_model::PushViewport::Request &  request,
asr_world_model::PushViewport::Response &  response 
)

Pushes a next best view viewport to a list.

Parameters
requestthe associated request object of the service call
responsethe associated response object of the service call
Returns
the success of the service call.

Definition at line 30 of file view_port_handler.cpp.

Member Data Documentation

DebugHelperPtr world_model::ViewPortHandler::debug_helper_ptr_
private

Definition at line 86 of file view_port_handler.hpp.

std::size_t world_model::ViewPortHandler::number_of_all_viewports
private

Definition at line 83 of file view_port_handler.hpp.

PoseHelperPtr world_model::ViewPortHandler::pose_helper_ptr_
private

Definition at line 87 of file view_port_handler.hpp.

SettingsPtr world_model::ViewPortHandler::settings_ptr_
private

Definition at line 88 of file view_port_handler.hpp.

ViewportListPtr world_model::ViewPortHandler::viewport_list_ptr_
private

Definition at line 84 of file view_port_handler.hpp.


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


asr_world_model
Author(s): Aumann Florian, Borella Jocelyn, Hutmacher Robin, Karrenbauer Oliver, Meißner Pascal, Schleicher Ralf, Stöckle Patrick, Trautmann Jeremias
autogenerated on Thu Jan 9 2020 07:20:01