GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - micro-ROS/micro_ros_raspberrypi_pico_sdk: Raspberry Pi Pico (RP2040) and micro-ROS integration

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

685 Commits
685 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.images
.images
 
 
libmicroros
libmicroros
 
 
microros_static_library/library_generation
microros_static_library/library_generation
 
 
.gitignore
.gitignore
 
 
3rd-party-licenses.txt
3rd-party-licenses.txt
 
 
CHANGELOG.rst
CHANGELOG.rst
 
 
CMakeLists.txt
CMakeLists.txt
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
NOTICE
NOTICE
 
 
README.md
README.md
 
 
available_ros2_types
available_ros2_types
 
 
built_packages
built_packages
 
 
package.xml
package.xml
 
 
pico_micro_ros_example.c
pico_micro_ros_example.c
 
 
pico_uart_transport.c
pico_uart_transport.c
 
 
pico_uart_transports.h
pico_uart_transports.h
 
 

Repository files navigation

banner banner

micro-ROS module for Raspberry Pi Pico SDK

License

Getting Started

Here is a quick way to compile the example given in this repository.

Dependencies

micro-ROS precompiled library is compiled using arm-none-eabi-gcc 9.3.1, a compatible version is expected when building the micro-ROS project. You can specify a compiler path with the following command:

# Configure environment
echo "export PICO_TOOLCHAIN_PATH=..." >> ~/.bashrc
source ~/.bashrc

1. Install Pico SDK

First, make sure the Pico SDK is properly installed and configured:

# Install dependencies
sudo apt install cmake g++ gcc-arm-none-eabi doxygen libnewlib-arm-none-eabi git python3
git clone --recurse-submodules https://github.com/raspberrypi/pico-sdk.git $HOME/pico-sdk

# Configure environment
echo "export PICO_SDK_PATH=$HOME/pico-sdk" >> ~/.bashrc
source ~/.bashrc

2. Compile Example

Once the Pico SDK is ready, clone this repository and compile the example:

git clone https://github.com/micro-ROS/micro_ros_raspberrypi_pico_sdk
cd micro_ros_raspberrypi_pico_sdk
mkdir build
cd build
cmake ..
make

To flash, hold the boot button, plug the USB and run:

cp pico_micro_ros_example.uf2 /media/$USER/RPI-RP2

3. Start Micro-ROS Agent

Micro-ROS follows the client-server architecture, so you need to start the Micro-ROS Agent. You can do so using the micro-ros-agent Snap (follow the link for installation details):

micro-ros-agent serial --dev /dev/ttyACM0 -b 115200

or using the micro-ros-agent Docker:

docker run -it --rm -v /dev:/dev --privileged --net=host microros/micro-ros-agent:kilted serial --dev /dev/ttyACM0 -b 115200

Using UART serial communication

To use the UART serial protocol instead of USB (for example, to use micro-ROS in combination with a Raspberry Pi Debug Probe), it is enough to update the # Configure Pico section in the CMakeLists.txt file as follows:

# Configure Pico
pico_enable_stdio_usb(pico_micro_ros_example 0)
pico_enable_stdio_uart(pico_micro_ros_example 1)

What files are relevant?

  • pico_uart_transport.c: Contains the board specific implementation of the serial transport (no change needed).
  • CMakeLists.txt: CMake file.
  • pico_micro_ros_example.c: The actual ROS 2 publisher.

How to build the precompiled library

Micro-ROS is precompiled for Raspberry Pi Pico in libmicroros. If you want to compile it by yourself:

docker pull microros/micro_ros_static_library_builder:kilted
docker run -it --rm -v $(pwd):/project microros/micro_ros_static_library_builder:kilted

Note that folders added to microros_static_library/library_generation/extra_packages and entries added to microros_static_library/library_generation/extra_packages/extra_packages.repos will be taken into account by this build system.

How to use Pico SDK?

Here is a Raspberry Pi Pico C/C++ SDK documentation: https://datasheets.raspberrypi.org/pico/raspberry-pi-pico-c-sdk.pdf

Purpose of the Project

This software is not ready for production use. It has neither been developed nor tested for a specific use case. However, the license conditions of the applicable Open Source licenses allow you to adapt the software to your needs. Before using it in a safety relevant setting, make sure that the software fulfills your requirements and adjust it according to any applicable safety standards, e.g., ISO 26262.

License

This repository is open-sourced under the Apache-2.0 license. See the LICENSE file for details.

For a list of other open-source components included in this repository, see the file 3rd-party-licenses.txt.

Known Issues/Limitations

There are no known limitations.

About

Raspberry Pi Pico (RP2040) and micro-ROS integration

Resources

Readme
Apache-2.0 license

Contributing

Contributing
Activity
Custom properties

Stars

242 stars

Watchers

4 watching

Forks

92 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.