How to recognize when the user is lost in openni_tracker? [closed]

asked 2012-08-27 08:07:56 -0500

Antares gravatar image

Previously I asked a question about /tf topic. Unfortunately it seems my question is not obvious, or the answer simply did not work!

I use openni_tracker to publish /tf message. This topic will start publishing when the calibration for a user is finished, and will stop publishing when the person is lost. It just send the message of "user 1 lost" to the terminal. But even when the user is lost, none of these functions return false.

bool tf::TransformListener::canTransform (const std::string &target_frame, const std::string &source_frame, const ros::Time &time, std::string *error_msg=NULL) const
bool tf::TransformListener::waitForTransform (const std::string &target_frame, const std::string &source_frame, const ros::Time &time, const ros::Duration &timeout, const ros::Duration &polling_sleep_duration=ros::Duration(0.01), std::string *error_msg=NULL) const

These functions are doing well at the start of the program when I need to recognize when the person is calibrated and tracking started. I wonder how can I recognize in my program that the person is lost. Is it any way to access the text message that is printed in the terminal?

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2015-04-07 00:10:33.840796


How are you calling those methods?

tfoote gravatar image tfoote  ( 2012-10-21 12:20:52 -0500 )edit