Classes | |
class | Billboard |
class | BoundingBox |
class | ClickablePositionsMarker |
This class represents clickable positions, which are visualized by the Interactive Markers as a sphere. Clicked position is published at the specified topic. More... | |
class | Object |
class | Plane |
class | PlanePolygon |
struct | PreGraspPosition |
Pre-grasp position. More... | |
class | Primitive |
class | UnknownObject |
class | UpdatePublisher |
Typedefs | |
typedef boost::shared_ptr < interactive_markers::InteractiveMarkerServer > | InteractiveMarkerServerPtr |
typedef geometry_msgs::Vector3 | Scale |
typedef std::map< std::string, Primitive * > | tPrimitives |
Enumerations | |
enum | { _, GRASP_1, GRASP_2, GRASP_3, GRASP_4, GRASP_5, GRASP_6 } |
Pre-grasp positions ids. More... | |
enum | ObjectResource { SHAPE, RESOURCE_FILE } |
Object resource types. More... | |
enum | UpdateType { UPDATE_POSE, UPDATE_SCALE, MENU_CLICKED, MOVEMENT_CHANGED, TAG_CHANGED, MOVE_ARM_TO_PREGRASP } |
Type of Primitive's update. More... | |
Functions | |
bool | addBillboard (AddBillboard::Request &req, AddBillboard::Response &res) |
Billboard adding. | |
bool | addBoundingBox (AddBoundingBox::Request &req, AddBoundingBox::Response &res) |
Bounding Box adding. | |
bool | addMarker (AddMarker::Request &req, AddMarker::Response &res) |
bool | addObject (AddObject::Request &req, AddObject::Response &res) |
Object adding. | |
bool | addPlane (AddPlane::Request &req, AddPlane::Response &res) |
Plane adding. | |
bool | addPlanePolygon (AddPlanePolygon::Request &req, AddPlanePolygon::Response &res) |
PlanePolygon adding. | |
bool | addUnknownObject (AddUnknownObject::Request &req, AddUnknownObject::Response &res) |
Unknown Object adding. | |
bool | changeColor (ChangeColor::Request &req, ChangeColor::Response &res) |
Change primitive's color. | |
bool | changeDescription (ChangeDescription::Request &req, ChangeDescription::Response &res) |
Change primitive's description. | |
bool | changeDirection (ChangeDirection::Request &req, ChangeDirection::Response &res) |
Change primitive's direction. | |
bool | changePose (ChangePose::Request &req, ChangePose::Response &res) |
Change primitive's pose. | |
bool | changeScale (ChangeScale::Request &req, ChangeScale::Response &res) |
Change primitive's scale. | |
bool | changeVelocity (ChangeVelocity::Request &req, ChangeVelocity::Response &res) |
Change primitive's velocity. | |
bool | clickablePositions (ClickablePositions::Request &req, ClickablePositions::Response &res) |
Gets clicked position. | |
bool | getAllPrimitivesNames (GetAllPrimitivesNames::Request &req, GetAllPrimitivesNames::Response &res) |
bool | getBillboard (GetBillboard::Request &req, GetBillboard::Response &res) |
bool | getBoundingBox (GetBoundingBox::Request &req, GetBoundingBox::Response &res) |
bool | getObject (GetObject::Request &req, GetObject::Response &res) |
Gets object. | |
bool | getPlane (GetPlane::Request &req, GetPlane::Response &res) |
bool | getUnknownObject (GetUnknownObject::Request &req, GetUnknownObject::Response &res) |
bool | getUpdateTopic (GetUpdateTopic::Request &req, GetUpdateTopic::Response &res) |
Gets primitive's update topic. | |
float | maxScale (geometry_msgs::Vector3 scale) |
Returns maximal scale value. | |
float | maxScale (Vector3 scale) |
float | minScale (geometry_msgs::Vector3 scale) |
Returns minimal scale value. | |
float | minScale (Vector3 scale) |
bool | removePreGraspPosition (RemovePreGraspPosition::Request &req, RemovePreGraspPosition::Response &res) |
Remove pre-grasp position. | |
bool | removePrimitive (RemovePrimitive::Request &req, RemovePrimitive::Response &res) |
Object removing. | |
bool | robotPosePrediction (RobotPosePrediction::Request &req, RobotPosePrediction::Response &res) |
Show predicted robot's positions and trajectory. | |
bool | setAllowObjectInteraction (SetAllowObjectInteraction::Request &req, SetAllowObjectInteraction::Response &res) |
Allows or denies interaction with Object. | |
bool | setPreGraspPosition (SetPreGraspPosition::Request &req, SetPreGraspPosition::Response &res) |
Set pre-grasp position. | |
Variables | |
static const std::string | AddBillboard_SRV = PACKAGE_NAME_PREFIX + std::string("/add_billboard") |
static const std::string | AddBoundingBox_SRV = PACKAGE_NAME_PREFIX + std::string("/add_bounding_box") |
static const std::string | AddObject_SRV = PACKAGE_NAME_PREFIX + std::string("/add_object") |
static const std::string | AddPlane_SRV = PACKAGE_NAME_PREFIX + std::string("/add_plane") |
static const std::string | AddPlanePolygon_SRV = PACKAGE_NAME_PREFIX + std::string("/add_plane_polygon") |
static const std::string | AddUnknownObject_SRV = PACKAGE_NAME_PREFIX + std::string("/add_unknown_object") |
static const std::string | AllowInteraction_PARAM = PACKAGE_NAME_PREFIX + std::string("/allow_object_interaction") |
static const std::string | ChangeColor_SRV = PACKAGE_NAME_PREFIX + std::string("/change_color") |
static const std::string | ChangeDescription_SRV = PACKAGE_NAME_PREFIX + std::string("/change_description") |
static const std::string | ChangeDirection_SRV = PACKAGE_NAME_PREFIX + std::string("/change_direction") |
static const std::string | ChangePose_SRV = PACKAGE_NAME_PREFIX + std::string("/change_pose") |
static const std::string | ChangeScale_SRV = PACKAGE_NAME_PREFIX + std::string("/change_scale") |
static const std::string | ChangeVelocity_SRV = PACKAGE_NAME_PREFIX + std::string("/change_velocity") |
static const std::string | ClickablePositions_SRV = PACKAGE_NAME_PREFIX + std::string("/clickable_positions") |
static const std::string | GetAllPrimitivesNames_SRV = PACKAGE_NAME_PREFIX + std::string("/get_all_primitives_names") |
static const std::string | GetBillboard_SRV = PACKAGE_NAME_PREFIX + std::string("/get_billboard") |
static const std::string | GetBoundingBox_SRV = PACKAGE_NAME_PREFIX + std::string("/get_bounding_box") |
static const std::string | GetObject_SRV = PACKAGE_NAME_PREFIX + std::string("/get_object") |
static const std::string | GetPlane_SRV = PACKAGE_NAME_PREFIX + std::string("/get_plane") |
static const std::string | GetUnknownObject_SRV = PACKAGE_NAME_PREFIX + std::string("/get_unknown_object") |
static const std::string | GetUpdateTopic_SRV = PACKAGE_NAME_PREFIX + std::string("/get_update_topic") |
InteractiveMarkerServerPtr | imServer |
static const std::string | MoveArmToPregraspOnClick_PARAM = PACKAGE_NAME_PREFIX + std::string("/move_arm_to_pregrasp_on_click") |
static const std::string | PACKAGE_NAME_PREFIX = "/interaction_primitives" |
std::map< std::string, Primitive * > | primitives |
static const std::string | RemoveGraspingPosition_SRV = PACKAGE_NAME_PREFIX + std::string("/remove_pregrasp_position") |
static const std::string | RemovePrimitive_SRV = PACKAGE_NAME_PREFIX + std::string("/remove_primitive") |
static const std::string | RobotPosePrediction_SRV = PACKAGE_NAME_PREFIX + std::string("/robot_pose_prediction") |
const float | SCALE_COEFF = 1.0 |
static const std::string | SetAllowObjectInteraction_SRV |
static const std::string | SetGraspingPosition_SRV = PACKAGE_NAME_PREFIX + std::string("/set_pregrasp_position") |
static const std::string | ShowPregrasp_PARAM = PACKAGE_NAME_PREFIX + std::string("/show_object_pregrasp") |
ros::Publisher | vis_pub |
This server advertises services for interactive primitives.
typedef boost::shared_ptr< interactive_markers::InteractiveMarkerServer > srs_interaction_primitives::InteractiveMarkerServerPtr |
Definition at line 39 of file clickable_positions.h.
typedef geometry_msgs::Vector3 srs_interaction_primitives::Scale |
Definition at line 65 of file primitive.h.
typedef std::map<std::string, Primitive*> srs_interaction_primitives::tPrimitives |
Definition at line 40 of file service_server.cpp.
anonymous enum |
Type of Primitive's update.
Definition at line 45 of file update_publisher.h.
bool srs_interaction_primitives::addBillboard | ( | AddBillboard::Request & | req, |
AddBillboard::Response & | res | ||
) |
Billboard adding.
req | Request of type AddBillboard. |
res | Response of type AddBillboard. |
Definition at line 95 of file service_server.cpp.
bool srs_interaction_primitives::addBoundingBox | ( | AddBoundingBox::Request & | req, |
AddBoundingBox::Response & | res | ||
) |
Bounding Box adding.
req | Request of type AddBoundingBox. |
res | Response of type AddBoundingBox. |
Definition at line 123 of file service_server.cpp.
bool srs_interaction_primitives::addMarker | ( | AddMarker::Request & | req, |
AddMarker::Response & | res | ||
) |
Definition at line 212 of file service_server.cpp.
bool srs_interaction_primitives::addObject | ( | AddObject::Request & | req, |
AddObject::Response & | res | ||
) |
Object adding.
req | Request of type AddObject. |
res | Response of type AddObject. |
Definition at line 150 of file service_server.cpp.
bool srs_interaction_primitives::addPlane | ( | AddPlane::Request & | req, |
AddPlane::Response & | res | ||
) |
Plane adding.
req | Request of type AddPlane. |
res | Response of type AddPlane. |
Definition at line 46 of file service_server.cpp.
bool srs_interaction_primitives::addPlanePolygon | ( | AddPlanePolygon::Request & | req, |
AddPlanePolygon::Response & | res | ||
) |
PlanePolygon adding.
req | Request of type AddPlanePolygon. |
res | Response of type AddPlanePolygon. |
Definition at line 71 of file service_server.cpp.
bool srs_interaction_primitives::addUnknownObject | ( | AddUnknownObject::Request & | req, |
AddUnknownObject::Response & | res | ||
) |
Unknown Object adding.
req | Request of type AddUnknownObject. |
res | Response of type AddUnknownObject. |
Definition at line 186 of file service_server.cpp.
bool srs_interaction_primitives::changeColor | ( | ChangeColor::Request & | req, |
ChangeColor::Response & | res | ||
) |
Change primitive's color.
req | Request of type ChangeColor. |
res | Response of type ChangeColor. |
Definition at line 374 of file service_server.cpp.
bool srs_interaction_primitives::changeDescription | ( | ChangeDescription::Request & | req, |
ChangeDescription::Response & | res | ||
) |
Change primitive's description.
req | Request of type ChangeDescription. |
res | Response of type ChangeDescription. |
Definition at line 317 of file service_server.cpp.
bool srs_interaction_primitives::changeDirection | ( | ChangeDirection::Request & | req, |
ChangeDirection::Response & | res | ||
) |
Change primitive's direction.
req | Request of type ChangeDirection. |
res | Response of type ChangeDirection. |
Definition at line 395 of file service_server.cpp.
bool srs_interaction_primitives::changePose | ( | ChangePose::Request & | req, |
ChangePose::Response & | res | ||
) |
Change primitive's pose.
req | Request of type ChangePose. |
res | Response of type ChangePose. |
Definition at line 336 of file service_server.cpp.
bool srs_interaction_primitives::changeScale | ( | ChangeScale::Request & | req, |
ChangeScale::Response & | res | ||
) |
Change primitive's scale.
req | Request of type ChangeScale. |
res | Response of type ChangeScale. |
Definition at line 355 of file service_server.cpp.
bool srs_interaction_primitives::changeVelocity | ( | ChangeVelocity::Request & | req, |
ChangeVelocity::Response & | res | ||
) |
Change primitive's velocity.
req | Request of type ChangeVelocity. |
res | Response of type ChangeVelocity. |
Definition at line 419 of file service_server.cpp.
bool srs_interaction_primitives::clickablePositions | ( | ClickablePositions::Request & | req, |
ClickablePositions::Response & | res | ||
) |
Gets clicked position.
req | Request of type ClickPositions. |
res | Response of type ClickPositions. |
Definition at line 626 of file service_server.cpp.
bool srs_interaction_primitives::getAllPrimitivesNames | ( | GetAllPrimitivesNames::Request & | req, |
GetAllPrimitivesNames::Response & | res | ||
) |
Definition at line 494 of file service_server.cpp.
bool srs_interaction_primitives::getBillboard | ( | GetBillboard::Request & | req, |
GetBillboard::Response & | res | ||
) |
Definition at line 553 of file service_server.cpp.
bool srs_interaction_primitives::getBoundingBox | ( | GetBoundingBox::Request & | req, |
GetBoundingBox::Response & | res | ||
) |
Definition at line 579 of file service_server.cpp.
bool srs_interaction_primitives::getObject | ( | GetObject::Request & | req, |
GetObject::Response & | res | ||
) |
Gets object.
req | Request of type GetObject. |
res | Response of type GetObject. |
Definition at line 505 of file service_server.cpp.
bool srs_interaction_primitives::getPlane | ( | GetPlane::Request & | req, |
GetPlane::Response & | res | ||
) |
Definition at line 603 of file service_server.cpp.
bool srs_interaction_primitives::getUnknownObject | ( | GetUnknownObject::Request & | req, |
GetUnknownObject::Response & | res | ||
) |
Definition at line 531 of file service_server.cpp.
bool srs_interaction_primitives::getUpdateTopic | ( | GetUpdateTopic::Request & | req, |
GetUpdateTopic::Response & | res | ||
) |
Gets primitive's update topic.
req | Request of type GetUpdateTopic. |
res | Response of type GetUpdateTopic. |
Definition at line 477 of file service_server.cpp.
float srs_interaction_primitives::maxScale | ( | geometry_msgs::Vector3 | scale | ) |
Returns maximal scale value.
scale | is vector of scale values |
float srs_interaction_primitives::maxScale | ( | Vector3 | scale | ) |
Definition at line 712 of file primitive.cpp.
float srs_interaction_primitives::minScale | ( | geometry_msgs::Vector3 | scale | ) |
Returns minimal scale value.
scale | is vector of scale values |
float srs_interaction_primitives::minScale | ( | Vector3 | scale | ) |
Definition at line 738 of file primitive.cpp.
bool srs_interaction_primitives::removePreGraspPosition | ( | RemovePreGraspPosition::Request & | req, |
RemovePreGraspPosition::Response & | res | ||
) |
Remove pre-grasp position.
req | Request of type RemoveGraspingPosition. |
res | Response of type RemoveGraspingPosition. |
Definition at line 293 of file service_server.cpp.
bool srs_interaction_primitives::removePrimitive | ( | RemovePrimitive::Request & | req, |
RemovePrimitive::Response & | res | ||
) |
Object removing.
req | Request of type RemovePrimitive. |
res | Response of type RemovePrimitive. |
Definition at line 246 of file service_server.cpp.
bool srs_interaction_primitives::robotPosePrediction | ( | RobotPosePrediction::Request & | req, |
RobotPosePrediction::Response & | res | ||
) |
Show predicted robot's positions and trajectory.
req | Request of type RobotPosePrediction. |
res | Response of type RobotPosePrediction. |
Definition at line 647 of file service_server.cpp.
bool srs_interaction_primitives::setAllowObjectInteraction | ( | SetAllowObjectInteraction::Request & | req, |
SetAllowObjectInteraction::Response & | res | ||
) |
Allows or denies interaction with Object.
req | Request of type SetAllowObjectInteraction. |
res | Response of type SetAllowObjectInteraction. |
Definition at line 444 of file service_server.cpp.
bool srs_interaction_primitives::setPreGraspPosition | ( | SetPreGraspPosition::Request & | req, |
SetPreGraspPosition::Response & | res | ||
) |
Set pre-grasp position.
req | Request of type SetPreGraspPosition. |
res | Response of type SetPreGraspPosition. |
Definition at line 269 of file service_server.cpp.
const std::string srs_interaction_primitives::AddBillboard_SRV = PACKAGE_NAME_PREFIX + std::string("/add_billboard") [static] |
Definition at line 68 of file services_list.h.
const std::string srs_interaction_primitives::AddBoundingBox_SRV = PACKAGE_NAME_PREFIX + std::string("/add_bounding_box") [static] |
Definition at line 69 of file services_list.h.
const std::string srs_interaction_primitives::AddObject_SRV = PACKAGE_NAME_PREFIX + std::string("/add_object") [static] |
Definition at line 72 of file services_list.h.
const std::string srs_interaction_primitives::AddPlane_SRV = PACKAGE_NAME_PREFIX + std::string("/add_plane") [static] |
Definition at line 70 of file services_list.h.
const std::string srs_interaction_primitives::AddPlanePolygon_SRV = PACKAGE_NAME_PREFIX + std::string("/add_plane_polygon") [static] |
Definition at line 71 of file services_list.h.
const std::string srs_interaction_primitives::AddUnknownObject_SRV = PACKAGE_NAME_PREFIX + std::string("/add_unknown_object") [static] |
Definition at line 73 of file services_list.h.
const std::string srs_interaction_primitives::AllowInteraction_PARAM = PACKAGE_NAME_PREFIX + std::string("/allow_object_interaction") [static] |
Definition at line 35 of file parameters_list.h.
const std::string srs_interaction_primitives::ChangeColor_SRV = PACKAGE_NAME_PREFIX + std::string("/change_color") [static] |
Definition at line 86 of file services_list.h.
const std::string srs_interaction_primitives::ChangeDescription_SRV = PACKAGE_NAME_PREFIX + std::string("/change_description") [static] |
Definition at line 83 of file services_list.h.
const std::string srs_interaction_primitives::ChangeDirection_SRV = PACKAGE_NAME_PREFIX + std::string("/change_direction") [static] |
Definition at line 87 of file services_list.h.
const std::string srs_interaction_primitives::ChangePose_SRV = PACKAGE_NAME_PREFIX + std::string("/change_pose") [static] |
Definition at line 84 of file services_list.h.
const std::string srs_interaction_primitives::ChangeScale_SRV = PACKAGE_NAME_PREFIX + std::string("/change_scale") [static] |
Definition at line 85 of file services_list.h.
const std::string srs_interaction_primitives::ChangeVelocity_SRV = PACKAGE_NAME_PREFIX + std::string("/change_velocity") [static] |
Definition at line 88 of file services_list.h.
const std::string srs_interaction_primitives::ClickablePositions_SRV = PACKAGE_NAME_PREFIX + std::string("/clickable_positions") [static] |
Definition at line 113 of file services_list.h.
const std::string srs_interaction_primitives::GetAllPrimitivesNames_SRV = PACKAGE_NAME_PREFIX + std::string("/get_all_primitives_names") [static] |
Definition at line 106 of file services_list.h.
const std::string srs_interaction_primitives::GetBillboard_SRV = PACKAGE_NAME_PREFIX + std::string("/get_billboard") [static] |
Definition at line 109 of file services_list.h.
const std::string srs_interaction_primitives::GetBoundingBox_SRV = PACKAGE_NAME_PREFIX + std::string("/get_bounding_box") [static] |
Definition at line 110 of file services_list.h.
const std::string srs_interaction_primitives::GetObject_SRV = PACKAGE_NAME_PREFIX + std::string("/get_object") [static] |
Definition at line 107 of file services_list.h.
const std::string srs_interaction_primitives::GetPlane_SRV = PACKAGE_NAME_PREFIX + std::string("/get_plane") [static] |
Definition at line 111 of file services_list.h.
const std::string srs_interaction_primitives::GetUnknownObject_SRV = PACKAGE_NAME_PREFIX + std::string("/get_unknown_object") [static] |
Definition at line 108 of file services_list.h.
const std::string srs_interaction_primitives::GetUpdateTopic_SRV = PACKAGE_NAME_PREFIX + std::string("/get_update_topic") [static] |
Definition at line 101 of file services_list.h.
Definition at line 44 of file service_server.cpp.
const std::string srs_interaction_primitives::MoveArmToPregraspOnClick_PARAM = PACKAGE_NAME_PREFIX + std::string("/move_arm_to_pregrasp_on_click") [static] |
Definition at line 37 of file parameters_list.h.
const std::string srs_interaction_primitives::PACKAGE_NAME_PREFIX = "/interaction_primitives" [static] |
Definition at line 63 of file services_list.h.
Definition at line 41 of file service_server.cpp.
const std::string srs_interaction_primitives::RemoveGraspingPosition_SRV = PACKAGE_NAME_PREFIX + std::string("/remove_pregrasp_position") [static] |
Definition at line 96 of file services_list.h.
const std::string srs_interaction_primitives::RemovePrimitive_SRV = PACKAGE_NAME_PREFIX + std::string("/remove_primitive") [static] |
Definition at line 78 of file services_list.h.
const std::string srs_interaction_primitives::RobotPosePrediction_SRV = PACKAGE_NAME_PREFIX + std::string("/robot_pose_prediction") [static] |
Definition at line 114 of file services_list.h.
const float srs_interaction_primitives::SCALE_COEFF = 1.0 |
Definition at line 79 of file primitive.h.
const std::string srs_interaction_primitives::SetAllowObjectInteraction_SRV [static] |
PACKAGE_NAME_PREFIX + std::string("/set_allow_object_interaction")
Definition at line 89 of file services_list.h.
const std::string srs_interaction_primitives::SetGraspingPosition_SRV = PACKAGE_NAME_PREFIX + std::string("/set_pregrasp_position") [static] |
Definition at line 95 of file services_list.h.
const std::string srs_interaction_primitives::ShowPregrasp_PARAM = PACKAGE_NAME_PREFIX + std::string("/show_object_pregrasp") [static] |
Definition at line 36 of file parameters_list.h.
Definition at line 67 of file service_server.h.