30 #include <find_object_2d/ObjectsStamped.h> 31 #include <QtCore/QString> 52 if(msg->objects.data.size())
54 for(
unsigned int i=0; i<msg->objects.data.size(); i+=12)
57 int id = (int)msg->objects.data[i];
58 std::string objectFrameId = QString(
"%1_%2").arg(
objFramePrefix_.c_str()).arg(
id).toStdString();
76 ROS_INFO(
"Object_%d [x,y,z] [x,y,z,w] in \"%s\" frame: [%f,%f,%f] [%f,%f,%f,%f]",
80 ROS_INFO(
"Object_%d [x,y,z] [x,y,z,w] in \"%s\" frame: [%f,%f,%f] [%f,%f,%f,%f]",
81 id, msg->header.frame_id.c_str(),
95 int main(
int argc,
char * argv[])
tf::TransformListener tfListener_
void objectsDetectedCallback(const find_object_2d::ObjectsStampedConstPtr &msg)
Subscriber subscribe(const std::string &topic, uint32_t queue_size, void(T::*fp)(M), T *obj, const TransportHints &transport_hints=TransportHints())
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
ROSCPP_DECL void spin(Spinner &spinner)
TFSIMD_FORCE_INLINE const tfScalar & x() const
std::string objFramePrefix_
TFSIMD_FORCE_INLINE const tfScalar & z() const
bool param(const std::string ¶m_name, T ¶m_val, const T &default_val) const
TFSIMD_FORCE_INLINE const tfScalar & y() const
int main(int argc, char *argv[])