예제 #1
0
 def move_entity_to_goal(self, entity, goal):
     self.get_logger().info('Move entity:' + entity.id + " to position:" +
                            goal.__str__())
     msg = SGlobalPose()
     msg.gpose = goal
     msg.id = entity.id
     self.moveToPub.publish(msg)
예제 #2
0
 def attack_goal(self, entity, goal):
     self.get_logger().info('Entity:' + entity.id + " should attack at:" +
                            goal.__str__())
     msg = SGlobalPose()
     msg.gpose = goal
     msg.id = entity.id
     self.attackPub.publish(msg)
예제 #3
0
 def look_at_goal(self, entity_id, goal):
     self.node.get_logger().info('Entity:' + entity_id +
                                 " should look at:" + goal.__str__())
     msg = SGlobalPose()
     msg.gpose = goal
     msg.id = entity_id
     self.lookPub.publish(msg)