Skip to content

Commit

Permalink
rm old vel 2d handling in python library
Browse files Browse the repository at this point in the history
  • Loading branch information
knmcguire committed Oct 6, 2022
1 parent 3a5f968 commit b39bfdc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 55 deletions.
45 changes: 0 additions & 45 deletions crazyflie_examples/crazyflie_examples/cmd_vel_2d.py

This file was deleted.

10 changes: 0 additions & 10 deletions crazyflie_py/crazyflie_py/crazyflie.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,6 @@ def __init__(self, node, id, initialPosition):
self.cmdPositionMsg.header.frame_id = "/world"


self.cmdVelocity2DPublisher = node.create_publisher(Twist, prefix + "/cmd_vel_2d", 1)
self.cmdVelocity2DMsg = Twist()

# self.cmdVelocityWorldPublisher = rospy.Publisher(prefix + "/cmd_velocity_world", VelocityWorld, queue_size=1)
# self.cmdVelocityWorldMsg = VelocityWorld()
# self.cmdVelocityWorldMsg.header.seq = 0
Expand Down Expand Up @@ -622,13 +619,6 @@ def cmdPosition(self, pos, yaw = 0.):
self.cmdPositionMsg.yaw = yaw
self.cmdPositionPublisher.publish(self.cmdPositionMsg)

def cmdVelocity2D(self, vx_body, vy_body, height, yawrate = 0.0):
self.cmdVelocity2DMsg.linear.x = vx_body
self.cmdVelocity2DMsg.linear.y = vy_body
self.cmdVelocity2DMsg.linear.z = height
self.cmdVelocity2DMsg.angular.z = yawrate
self.cmdVelocity2DPublisher.publish(self.cmdVelocity2DMsg)

# def setLEDColor(self, r, g, b):
# """Sets the color of the LED ring deck.

Expand Down

0 comments on commit b39bfdc

Please sign in to comment.