def setWalkVelocity(velX, velY, velTheta): scale = max(math.sqrt(velX * velX + velY * velY), 1.0) velX /= scale velY /= scale walk_request.setWalk(velX, velY, velTheta)
def setWalkVelocity(velX, velY, velTheta): """Request walk at certain velocity.""" scale = max(math.sqrt(velX * velX + velY * velY), 1.0) velX /= scale velY /= scale walk_request.setWalk(velX, velY, velTheta)
def setWalkVelocity(velX, velY, velTheta): scale = max(math.sqrt(velX * velX + velY * velY), 1.0) velX /= scale; velY /= scale walk_request.setWalk(velX, velY, velTheta)