Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add extra packages build to micro-ROS lib (backport #19) #20

Merged
merged 1 commit into from
Mar 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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