21 #include <boost/shared_ptr.hpp> 31 #include <asr_msgs/AsrViewport.h> 35 #include "asr_world_model/EmptyViewportList.h" 36 #include "asr_world_model/GetViewportList.h" 37 #include "asr_world_model/PushViewport.h" 38 #include "asr_world_model/FilterViewportDependingOnAlreadyVisitedViewports.h" 51 std::ostream&
operator<<(std::ostream &strm,
const ViewportList &viewport_list);
52 std::ostream&
operator<<(std::ostream &strm,
const ViewportListPtr &viewport_list_ptr);
65 {
return "push_viewport"; }
69 {
return "empty_viewport_list"; }
73 {
return "get_viewport_list"; }
77 {
return "filter_viewport_depending_on_already_visited_viewports"; }
107 asr_world_model::EmptyViewportList::Response &response);
117 asr_world_model::GetViewportList::Response &response);
126 asr_world_model::PushViewport::Response &response);
135 asr_world_model::FilterViewportDependingOnAlreadyVisitedViewports::Response &response);
static const std::string GetGetViewportListServiceName()
SettingsPtr settings_ptr_
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 ot...
bool processPushViewportServiceCall(asr_world_model::PushViewport::Request &request, asr_world_model::PushViewport::Response &response)
Pushes a next best view viewport to a list.
std::vector< asr_msgs::AsrViewport > ViewportList
DebugHelperPtr debug_helper_ptr_
void filterObjectTypesOfViewport(asr_msgs::AsrViewport &viewport_to_filter, const asr_msgs::AsrViewport &filter_viewport)
PoseHelperPtr pose_helper_ptr_
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 t...
ViewPortHandler(SettingsPtr settings_ptr)
Creates a new instance of the ViewPortHandler.
static const std::string GetFilterViewportDependingOnAlreadyVisitedViewportsName()
std::ostream & operator<<(std::ostream &strm, const CompletePatterns &complete_patterns)
static const std::string GetPushViewportServiceName()
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.
std::size_t number_of_all_viewports
static const std::string GetEmptyViewportListServiceName()
WorldModel class provides services for adding the viewports of the next best views to a list and retr...
boost::shared_ptr< ViewportList > ViewportListPtr
ViewportListPtr viewport_list_ptr_