Advertisement
130s

subscribeDelay_listener_11Nov1

Nov 1st, 2011
397
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. #!/usr/bin/env python
  2. class CwdAllocDataAdaptor(AbstractSensorAdaptor):
  3. def __init__(self):
  4. rospy.init_node(AbstractSensorAdaptor.NODENAME_SENSOR)
  5. self.tfListener = tf.TransformListener()
  6. self.listener()
  7. return None
  8.  
  9. def callBack(self, swm):
  10. convC = self.convertSensorData(swm);
  11. self.publish(convC)
  12.  
  13. def convSD(self, swm):
  14. convSwm = ConvertedSwm()
  15. for agent in swm.crowds:
  16. x = agent.position.x
  17. y = agent.position.y
  18. print agent.header.stamp, x, y # <--- Print here is compared.
  19.  
  20. return convSwm
  21.  
  22. if __name__ == '__main__':
  23. c = CwdAllocDataAdaptor();
  24. # pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement