These are chat archives for LCAS/Human-Aware-Navigation

21st
Mar 2016
AJames200
@AJames200
Mar 21 2016 16:06
how do you read in the human x & y coordinates using "from bayes_people_tracker.msg import PeopleTracker" i've set it up to be xpos = data.poses.position.x | this dosen't work. (the subscriber is rospy.Subscriber('/people_tracker/positions', PeopleTracker, callback))
Marc Hanheide
@marc-hanheide
Mar 21 2016 16:07
can you please paste the whole function. use the back quotes to start your code and three to finish it, like this:
your code here
here is the markdown help:
blob
Christian Dondrup
@cdondrup
Mar 21 2016 16:09
quick answer data.poses is an array. so with data.poses[0].position.x you should get the x position of the first person in the list.
def callback(msg):
    for person in msg.poses:
        print person.position.x
        print person.position.y
If that doesn't work. Please follow Marcs advice and print the code snippet that doesn't work.
Marc Hanheide
@marc-hanheide
Mar 21 2016 17:01
just to ask: You haven't started the scheduler at all today, right?
or have you?
Christian Dondrup
@cdondrup
Mar 21 2016 17:02
Nope... and wrong chat ;)
Marc Hanheide
@marc-hanheide
Mar 21 2016 17:02
ooooos... yes, sorry