A persistent observer of items in the world for the spatial world database. More...
#include <ItemObserver.h>
Public Member Functions | |
ItemObserver () | |
Create a ItemObserver and associated ROS information. | |
virtual | ~ItemObserver () |
Cleans up a ItemObserver. | |
Private Member Functions | |
void | recognizedObjectsCallback (const rail_manipulation_msgs::SegmentedObjectListConstPtr &objects) const |
Main callback for the recognized objects topic. | |
Private Attributes | |
ros::Subscriber | recognized_objects_sub_ |
worldlib::remote::SpatialWorldClient * | spatial_world_client_ |
A persistent observer of items in the world for the spatial world database.
The world item observer will store item observations in a remote spatial world database by listening to a rail_manipulation_msgs/SegmentedObjectList message.
Definition at line 33 of file ItemObserver.h.
Create a ItemObserver and associated ROS information.
Creates the ROS node handle and creates clients to the worldlib database and object topic.
Definition at line 22 of file ItemObserver.cpp.
ItemObserver::~ItemObserver | ( | ) | [virtual] |
Cleans up a ItemObserver.
Cleans up any connections used by the ItemObserver.
Definition at line 69 of file ItemObserver.cpp.
void ItemObserver::recognizedObjectsCallback | ( | const rail_manipulation_msgs::SegmentedObjectListConstPtr & | objects | ) | const [private] |
Main callback for the recognized objects topic.
The recognized objects callback will add all observations seen based on the recognized objects and the surface from the world they are most likely on (based on bounding regions). Any missing items will be marked as removed.
objects | The current list of segmented objects. |
Definition at line 75 of file ItemObserver.cpp.
The recognized objects topic.
Definition at line 65 of file ItemObserver.h.
worldlib::remote::SpatialWorldClient* rail::spatial_temporal_learning::ItemObserver::spatial_world_client_ [private] |
The spatial world database client
Definition at line 62 of file ItemObserver.h.