Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- class CwdAllocDataAdaptor(AbstractSensorAdaptor):
- def __init__(self):
- rospy.init_node(AbstractSensorAdaptor.NODENAME_SENSOR)
- self.tfListener = tf.TransformListener()
- self.listener()
- return None
- def callBack(self, swm):
- convC = self.convertSensorData(swm);
- self.publish(convC)
- def convSD(self, swm):
- convSwm = ConvertedSwm()
- for agent in swm.crowds:
- x = agent.position.x
- y = agent.position.y
- print agent.header.stamp, x, y # <--- Print here is compared.
- return convSwm
- if __name__ == '__main__':
- c = CwdAllocDataAdaptor();
- # pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement