Skip to content

Commit

Permalink
Issue87 (IMRCLab#111)
Browse files Browse the repository at this point in the history
* examples: switch to cmake for symlink-install

Workaround for colcon/colcon-core#407

Fixes IMRCLab#87
  • Loading branch information
whoenig committed Nov 17, 2022
1 parent ad50009 commit fd778f3
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 46 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci-ros2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ jobs:
- name: build and test ROS 2
uses: ros-tooling/[email protected]
with:
package-name: crazyflie crazyflie_interfaces
package-name: |
crazyflie
crazyflie_examples
crazyflie_interfaces
target-ros2-distro: ${{ matrix.ros_distribution }}
vcs-repo-file-url: rosinstall
19 changes: 19 additions & 0 deletions crazyflie_examples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
cmake_minimum_required(VERSION 3.8)
project(crazyflie_examples)

# find dependencies
find_package(ament_cmake REQUIRED)
find_package(ament_cmake_python REQUIRED)

# Install Python modules
ament_python_install_package(${PROJECT_NAME} SCRIPTS_DESTINATION lib/${PROJECT_NAME})

# Install launch and config files.
install(DIRECTORY
config
data
launch
DESTINATION share/${PROJECT_NAME}/
)

ament_package()
5 changes: 4 additions & 1 deletion crazyflie_examples/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
<maintainer email="[email protected]">Wolfgang Hönig, Kimberly McGuire</maintainer>
<license>MIT</license>

<buildtool_depend>ament_cmake</buildtool_depend>
<buildtool_depend>ament_cmake_python</buildtool_depend>

<depend>rclpy</depend>
<depend>crazyflie_py</depend>

Expand All @@ -16,6 +19,6 @@
<test_depend>python3-pytest</test_depend>

<export>
<build_type>ament_python</build_type>
<build_type>ament_cmake</build_type>
</export>
</package>
10 changes: 6 additions & 4 deletions crazyflie_examples/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
[develop]
script_dir=$base/lib/crazyflie_examples
[install]
install_scripts=$base/lib/crazyflie_examples
[options.entry_points]
console_scripts =
hello_world = crazyflie_examples.hello_world:main
nice_hover = crazyflie_examples.nice_hover:main
figure8 = crazyflie_examples.figure8:main
cmd_full_state = crazyflie_examples.cmd_full_state:main
35 changes: 0 additions & 35 deletions crazyflie_examples/setup.py

This file was deleted.

5 changes: 0 additions & 5 deletions docs2/tutorials.rst
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,6 @@ 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 @@ -387,9 +385,6 @@ 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 fd778f3

Please sign in to comment.