Skip to content

Commit

Permalink
Merge pull request IMRCLab#86 from IMRCLab/rm-vel2d
Browse files Browse the repository at this point in the history
Rm vel2d
  • Loading branch information
knmcguire committed Oct 6, 2022
2 parents 3a5f968 + c61b416 commit d6d1af1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 56 deletions.
45 changes: 0 additions & 45 deletions crazyflie_examples/crazyflie_examples/cmd_vel_2d.py

This file was deleted.

1 change: 0 additions & 1 deletion crazyflie_examples/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
'nice_hover = crazyflie_examples.nice_hover:main',
'figure8 = crazyflie_examples.figure8:main',
'cmd_full_state = crazyflie_examples.cmd_full_state:main',
'cmd_vel_2d = crazyflie_examples.cmd_vel_2d:main',
],
},
)
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
5 changes: 5 additions & 0 deletions docs2/tutorials.rst
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,8 @@ Once you are happy, you can save the map with 'Save Map' in the SLAM toolbox pan

If not, you could tweak with the parameters of the `SLAM toolbox <https://github.com/SteveMacenski/slam_toolbox/>`_ to get a better result.

.. warning::
Anything you change in the launch file, you'll need to reinstall with 'colcon build --symlink-install' in the ros2_ws folder

Connecting with Nav2 Bringup
----------------------------
Expand Down Expand Up @@ -385,6 +387,9 @@ Also try it out by putting obstacles along the path of the crazyflie like in the
As you noticed, the movement around the obstacles are pretty conservative. You can tune the values in /config/nav2_params.yaml, like the global or local planner's inflation_layer or the size of the robot.
Please check out `NAV2's tuning documentation <https://navigation.ros.org/tuning/index.html/>`_ for more explanation of these values.

.. warning::
Anything you change in the launch, config and data file, you'll need to reinstall with 'colcon build --symlink-install' in the ros2_ws folder. This is due to `this unresolved issue in colcon_core <https://github.com/colcon/colcon-core/issues/407/>`_.

.. note::
Final note. The SLAM performance and navigation performance of the Crazyflie with the multiranger is doable but not perfect. We absolutely encourage you to tweak and tune the parameters to get something better! (And if you do, please share :D)

Expand Down

0 comments on commit d6d1af1

Please sign in to comment.