Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
world_model::FoundObjectHandler 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 <found_object_handler.hpp>

Public Member Functions

 FoundObjectHandler (boost::shared_ptr< ros::Publisher > marker_publisher_ptr, boost::shared_ptr< ros::ServiceClient > object_type_client_ptr, ModelTypePtrPerTypeMapPtr model_type_ptr_per_type_map_ptr, SettingsPtr settings_ptr)
 Creates a new instance of FoundObjectHandler. More...
 
bool processEmptyFoundObjectListServiceCall (std_srvs::Empty::Request &request, std_srvs::Empty::Response &response)
 Empties the found object list. More...
 
bool processGetFoundObjectListServiceCall (asr_world_model::GetFoundObjectList::Request &request, asr_world_model::GetFoundObjectList::Response &response)
 Returns the already found objects. More...
 
bool processPushFoundObjectListServiceCall (asr_world_model::PushFoundObjectList::Request &request, asr_world_model::PushFoundObjectList::Response &response)
 Pushes the found object to a list. More...
 
bool processPushFoundObjectServiceCall (asr_world_model::PushFoundObject::Request &request, asr_world_model::PushFoundObject::Response &response)
 Pushes the found object to a list. More...
 
bool processVisualizeSampledPosesCall (asr_world_model::VisualizeSampledPoses::Request &request, asr_world_model::VisualizeSampledPoses::Response &response)
 

Static Public Member Functions

static const std::string GetEmptyFoundObjectListServiceName ()
 
static const std::string GetGetFoundObjectListServiceName ()
 
static const std::string GetPushFoundObjectListServiceName ()
 
static const std::string GetPushFoundObjectServiceName ()
 
static const std::string GetVisualizeSampledPosesName ()
 

Private Member Functions

bool evaluateNeighborhood (const asr_msgs::AsrObject &object1, const asr_msgs::AsrObject &object2) const
 Determines if two objects are neighbors to each other in terms of position and orientation distance. More...
 
std::vector< geometry_msgs::PoseinterpolateOrientationAroundAxis (const geometry_msgs::Pose &poseToInterpolate, const double interpolationOffset, const Eigen::Vector3d &axisToRotate, const int numberOfInterpolationsPerOrientation) const
 
std::vector< geometry_msgs::PoseinterpolatePoses (const geometry_msgs::Pose &fromPose, const geometry_msgs::Pose &toPose, const int numberOfInterpolations) const
 
bool pushFoundObject (asr_msgs::AsrObject &candidate)
 
geometry_msgs::Pose rotateOrientationAroundAxis (const geometry_msgs::Pose &poseToRotate, const double interpolationOffset, const Eigen::Vector3d &axisToRotate) const
 
bool sampleFoundObject (asr_msgs::AsrObject &candidate)
 Generates samples for object pose estimation to model uncertainty. More...
 
bool transformToBaseFrame (asr_msgs::AsrObject &candidate) const
 Transform object pose to base frame of world model. More...
 
void updateBestHypothesis (ModelObjectPtr &currentModelObjectPtr, const asr_msgs::AsrObject &candidate)
 
void visualizeFoundObjects ()
 

Private Attributes

DebugHelperPtr debug_helper_ptr_
 
const double DEG_TO_RAD = M_PI / 180.0
 
const double EPSILON = 0.0001
 
ModelTypePtrPerTypeMapPtr model_type_ptr_per_type_map_ptr_
 
boost::shared_ptr< ros::ServiceClientobject_type_client_ptr_
 
PoseHelperPtr pose_helper_ptr_
 
SettingsPtr settings_ptr_
 
tf::TransformListener tf_transform_listener_
 
WorldModelVisualizerRVIZPtr world_model_visualizer_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 60 of file found_object_handler.hpp.

Constructor & Destructor Documentation

world_model::FoundObjectHandler::FoundObjectHandler ( boost::shared_ptr< ros::Publisher marker_publisher_ptr,
boost::shared_ptr< ros::ServiceClient object_type_client_ptr,
ModelTypePtrPerTypeMapPtr  model_type_ptr_per_type_map_ptr,
SettingsPtr  settings_ptr 
)

Creates a new instance of FoundObjectHandler.

Definition at line 23 of file found_object_handler.cpp.

Member Function Documentation

bool world_model::FoundObjectHandler::evaluateNeighborhood ( const asr_msgs::AsrObject &  object1,
const asr_msgs::AsrObject &  object2 
) const
private

Determines if two objects are neighbors to each other in terms of position and orientation distance.

Parameters
thetwo objects
Returns
returns true if the two objects are neighbors

Definition at line 160 of file found_object_handler.cpp.

static const std::string world_model::FoundObjectHandler::GetEmptyFoundObjectListServiceName ( )
inlinestatic

Definition at line 75 of file found_object_handler.hpp.

static const std::string world_model::FoundObjectHandler::GetGetFoundObjectListServiceName ( )
inlinestatic

Definition at line 79 of file found_object_handler.hpp.

static const std::string world_model::FoundObjectHandler::GetPushFoundObjectListServiceName ( )
inlinestatic

Definition at line 71 of file found_object_handler.hpp.

static const std::string world_model::FoundObjectHandler::GetPushFoundObjectServiceName ( )
inlinestatic

Definition at line 67 of file found_object_handler.hpp.

static const std::string world_model::FoundObjectHandler::GetVisualizeSampledPosesName ( )
inlinestatic

Definition at line 83 of file found_object_handler.hpp.

std::vector< geometry_msgs::Pose > world_model::FoundObjectHandler::interpolateOrientationAroundAxis ( const geometry_msgs::Pose poseToInterpolate,
const double  interpolationOffset,
const Eigen::Vector3d &  axisToRotate,
const int  numberOfInterpolationsPerOrientation 
) const
private

Definition at line 359 of file found_object_handler.cpp.

std::vector< geometry_msgs::Pose > world_model::FoundObjectHandler::interpolatePoses ( const geometry_msgs::Pose fromPose,
const geometry_msgs::Pose toPose,
const int  numberOfInterpolations 
) const
private

Definition at line 392 of file found_object_handler.cpp.

bool world_model::FoundObjectHandler::processEmptyFoundObjectListServiceCall ( std_srvs::Empty::Request &  request,
std_srvs::Empty::Response &  response 
)

Empties the found object list.

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 479 of file found_object_handler.cpp.

bool world_model::FoundObjectHandler::processGetFoundObjectListServiceCall ( asr_world_model::GetFoundObjectList::Request &  request,
asr_world_model::GetFoundObjectList::Response &  response 
)

Returns the already found objects.

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 495 of file found_object_handler.cpp.

bool world_model::FoundObjectHandler::processPushFoundObjectListServiceCall ( asr_world_model::PushFoundObjectList::Request &  request,
asr_world_model::PushFoundObjectList::Response &  response 
)

Pushes the found object to a list.

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 38 of file found_object_handler.cpp.

bool world_model::FoundObjectHandler::processPushFoundObjectServiceCall ( asr_world_model::PushFoundObject::Request &  request,
asr_world_model::PushFoundObject::Response &  response 
)
inline

Pushes the found object to a list.

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 147 of file found_object_handler.hpp.

bool world_model::FoundObjectHandler::processVisualizeSampledPosesCall ( asr_world_model::VisualizeSampledPoses::Request &  request,
asr_world_model::VisualizeSampledPoses::Response &  response 
)

Definition at line 449 of file found_object_handler.cpp.

bool world_model::FoundObjectHandler::pushFoundObject ( asr_msgs::AsrObject &  candidate)
private
Parameters
candidatethe found object candidate
Returns
the success of the action

Definition at line 51 of file found_object_handler.cpp.

geometry_msgs::Pose world_model::FoundObjectHandler::rotateOrientationAroundAxis ( const geometry_msgs::Pose poseToRotate,
const double  interpolationOffset,
const Eigen::Vector3d &  axisToRotate 
) const
private

Definition at line 368 of file found_object_handler.cpp.

bool world_model::FoundObjectHandler::sampleFoundObject ( asr_msgs::AsrObject &  candidate)
private

Generates samples for object pose estimation to model uncertainty.

Parameters
candidatethe found object candidate
Returns
success of comunication with object database

Definition at line 193 of file found_object_handler.cpp.

bool world_model::FoundObjectHandler::transformToBaseFrame ( asr_msgs::AsrObject &  candidate) const
private

Transform object pose to base frame of world model.

Parameters
candidatethe found object candidate

Definition at line 167 of file found_object_handler.cpp.

void world_model::FoundObjectHandler::updateBestHypothesis ( ModelObjectPtr currentModelObjectPtr,
const asr_msgs::AsrObject &  candidate 
)
private

Definition at line 100 of file found_object_handler.cpp.

void world_model::FoundObjectHandler::visualizeFoundObjects ( )
private

Definition at line 437 of file found_object_handler.cpp.

Member Data Documentation

DebugHelperPtr world_model::FoundObjectHandler::debug_helper_ptr_
private

Definition at line 91 of file found_object_handler.hpp.

const double world_model::FoundObjectHandler::DEG_TO_RAD = M_PI / 180.0
private

Definition at line 87 of file found_object_handler.hpp.

const double world_model::FoundObjectHandler::EPSILON = 0.0001
private

Definition at line 88 of file found_object_handler.hpp.

ModelTypePtrPerTypeMapPtr world_model::FoundObjectHandler::model_type_ptr_per_type_map_ptr_
private

Definition at line 101 of file found_object_handler.hpp.

boost::shared_ptr<ros::ServiceClient> world_model::FoundObjectHandler::object_type_client_ptr_
private

Definition at line 99 of file found_object_handler.hpp.

PoseHelperPtr world_model::FoundObjectHandler::pose_helper_ptr_
private

Definition at line 92 of file found_object_handler.hpp.

SettingsPtr world_model::FoundObjectHandler::settings_ptr_
private

Definition at line 103 of file found_object_handler.hpp.

tf::TransformListener world_model::FoundObjectHandler::tf_transform_listener_
private

Definition at line 93 of file found_object_handler.hpp.

WorldModelVisualizerRVIZPtr world_model::FoundObjectHandler::world_model_visualizer_ptr_
private

Definition at line 96 of file found_object_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