1 #ifndef WORLDMODELROS_H_ 2 #define WORLDMODELROS_H_ 9 #include "wire_msgs/WorldEvidence.h" 10 #include "wire_msgs/ObjectEvidence.h" 12 #include "wire_msgs/WorldState.h" 13 #include "wire_msgs/ObjectState.h" 16 #include "std_srvs/Empty.h" 29 class KnowledgeProbModel;
50 void processEvidence(
const wire_msgs::WorldEvidence& world_evidence_msg);
114 void evidenceCallback(
const wire_msgs::WorldEvidence::ConstPtr& world_evidence_msg);
116 bool resetWorldModel(std_srvs::Empty::Request& req, std_srvs::Empty::Response& res);
void registerEvidenceTopic(const std::string &topic_name)
bool objectToMsg(const SemanticObject &obj, wire_msgs::ObjectState &msg) const
double max_update_duration
mhf::HypothesisTree * world_model_
void processEvidence(const ros::Duration max_duration)
std::list< ros::Subscriber > subs_evidence_
bool resetWorldModel(std_srvs::Empty::Request &req, std_srvs::Empty::Response &res)
void showStatistics() const
std::string output_frame_id_
bool transformOrientation(const pbl::PDF &pdf_in, const std::string &frame_in, pbl::Gaussian &pdf_out) const
const std::list< SemanticObject * > & getMAPObjects() const
std::list< wire_msgs::WorldEvidence > evidence_buffer_
bool hypothesisToMsg(const mhf::Hypothesis &hyp, wire_msgs::WorldState &msg) const
WorldModelROS(tf::TransformListener *tf_listener=0)
ros::ServiceServer srv_reset_
boost::thread processing_thread_
void evidenceCallback(const wire_msgs::WorldEvidence::ConstPtr &world_evidence_msg)
void printWorldObjects(const mhf::Hypothesis &hyp) const
tf::TransformListener * tf_listener_
double last_update_duration
std::string world_model_frame_id_
std::stringstream warnings_
bool transformPosition(const pbl::PDF &pdf_in, const std::string &frame_in, pbl::Gaussian &pdf_out) const