diff --git a/_sources/tutorials.rst.txt b/_sources/tutorials.rst.txt index c007409bd..3a3894123 100644 --- a/_sources/tutorials.rst.txt +++ b/_sources/tutorials.rst.txt @@ -89,6 +89,46 @@ Here you can see an example of 5 crazyflies with the Pose default topic enabled, +Mapping with simple mapper +-------------------------- + +If you have a crazyflie with a multiranger and flowdeck, you can try out some simple mapping. + +Make sure that the scan and odometry logging is enabled in crazyflies.yaml: + +.. code-block:: bash + + firmware_logging: + enabled: true + default_topics: + odom: + frequency: 10 # Hz + scan: + frequency: 10 # Hz + +and make sure that the pid controller and kalman filter is enabled: + +.. code-block:: bash + + firmware_params: + stabilizer: + estimator: 2 # 1: complementary, 2: kalman + controller: 1 # 1: PID, 2: mellinger + +If you are using a different name for your crazyflie, make sure to change the following in the example launch file (multiranger_simple_mapper_launch.py): + +.. code-block:: bash + + crazyflie_name = '/cf231' + +Then start the simple mapper example launch file: + +.. code-block:: bash + + ros2 launch crazyflie_examples multiranger_simple_mapper_launch.py + +And watch the mapping happening in rviz2 while controlling the crazyflie with the teleop node (see the sections above). + Mapping with the SLAM toolbox ----------------------------- diff --git a/faq.html b/faq.html index 60e403f1f..301771013 100644 --- a/faq.html +++ b/faq.html @@ -1,13 +1,15 @@ - +
If you have a crazyflie with a multiranger and flowdeck, you can try out some simple mapping.
+Make sure that the scan and odometry logging is enabled in crazyflies.yaml:
+firmware_logging:
+ enabled: true
+ default_topics:
+ odom:
+ frequency: 10 # Hz
+ scan:
+ frequency: 10 # Hz
+
and make sure that the pid controller and kalman filter is enabled:
+firmware_params:
+ stabilizer:
+ estimator: 2 # 1: complementary, 2: kalman
+ controller: 1 # 1: PID, 2: mellinger
+
If you are using a different name for your crazyflie, make sure to change the following in the example launch file (multiranger_simple_mapper_launch.py):
+crazyflie_name = '/cf231'
+
Then start the simple mapper example launch file:
+ros2 launch crazyflie_examples multiranger_simple_mapper_launch.py
+
And watch the mapping happening in rviz2 while controlling the crazyflie with the teleop node (see the sections above).
+You can connect the Crazyflie through ROS 2 with existing packages like the SLAM toolbox. diff --git a/usage.html b/usage.html index b4267a11e..ee76b3f13 100644 --- a/usage.html +++ b/usage.html @@ -1,13 +1,15 @@ - +