Skip to content

Commit

Permalink
Add extra packages build to micro-ROS lib (#19) (#20)
Browse files Browse the repository at this point in the history
* Add extra_packages folder

* Delete repos file

* Add extra packages explanation to Readme

* Add empty extra_packages folder to git

(cherry picked from commit 1775ac7)

Co-authored-by: Antonio Cuadros <[email protected]>
  • Loading branch information
mergify[bot] and Acuadros95 authored Mar 15, 2022
1 parent 450e14b commit 90da7aa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ These are optional:
pip3 install prettytable future jinja2 intelhex
```

## Add packages
Custom packages inside of the `extra_packages` folder will be included on the micro-ROS library build.
This allows the use of custom messages or other ROS packages.

## Example

In order to test a int32_publisher example:
Expand Down
Empty file added extra_packages/.gitkeep
Empty file.
4 changes: 2 additions & 2 deletions libmicroros.mk
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ $(EXTENSIONS_DIR)/micro_ros_src/src:
touch src/rclc/rclc_examples/COLCON_IGNORE; \
touch src/rcl/rcl_yaml_param_parser/COLCON_IGNORE; \
touch src/rcl_logging/rcl_logging_log4cxx/COLCON_IGNORE; \
touch src/rcl_logging/rcl_logging_spdlog/COLCON_IGNORE;

touch src/rcl_logging/rcl_logging_spdlog/COLCON_IGNORE; \
cp -rf $(EXTENSIONS_DIR)/extra_packages src/extra_packages || :;

$(EXTENSIONS_DIR)/micro_ros_src/install: $(EXTENSIONS_DIR)/mbed_toolchain.cmake $(EXTENSIONS_DIR)/micro_ros_dev/install $(EXTENSIONS_DIR)/micro_ros_src/src
cd $(UROS_DIR); \
Expand Down

0 comments on commit 90da7aa

Please sign in to comment.