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

How does someone make use of this in a zephyr project? #119

Open
chmorgan opened this issue Apr 24, 2023 · 2 comments
Open

How does someone make use of this in a zephyr project? #119

chmorgan opened this issue Apr 24, 2023 · 2 comments

Comments

@chmorgan
Copy link

How should someone add this module to their existing zephyr project?

@pablogs9
Copy link
Member

This is a sample application, we will modify it to be a pure module. But by now, you can replicate this structure in you zephyr project.

@gseqBE
Copy link
Contributor

gseqBE commented Jul 28, 2023

@chmorgan
I had asked this question some time ago

  1. Treated this repo as a submodule
  2. We placed it in a folder called libraries, where all our external submodules are.
  3. Add to Cmakelists.txt
    list(APPEND ZEPHYR_EXTRA_MODULES ${CMAKE_CURRENT_SOURCE_DIR}/<library path from above>/micro_ros_zephyr_module/modules/libmicroros/)
  4. We also had the below in the project .conf
CONFIG_MICROROS=y
CONFIG_APP_LINK_WITH_MICROROS=y
  1. Then: west build -t menuconfig, and enable libmicroros under modules and make config changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants