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

Question about how to apply micro-ROS on FreeRTOS on teensy4.1 development board #1854

Open
ChoiYouJung opened this issue Nov 1, 2024 · 4 comments

Comments

@ChoiYouJung
Copy link

Issue template

  • Hardware description: Teensy4.1
  • RTOS: FreeRTOS
  • Installation type: Arduino IDE or MCUXpressoIDE
  • Version or commit hash: humble or Jazzy

Steps to reproduce the issue

I am trying to apply micro-ROS on FreeRTOS on the teensy4.1 development board.
So, can I use the static library micro_ros_arduino for the micro-ROS library like I used in the bare metal environment on the teensy4.1 development board?

Expected behavior

  • Apply micro-ROS on FreeRTOS on teensy4.1 development board
  • I would like to know how to apply micro-ROS on FreeRTOS on the teensy4.1 development board.

Actual behavior

Additional information

  • The operating system of the Arduino IDE is Windows 10.

  • The operating system of the MCUXpresso IDE is Windows 10.

@hippo5329
Copy link

Just some background questions.

  1. Are you familiar with ROS2 and micro-ROS? How do you run ROS2 on Windows? Why don't you run Ubuntu? Are you familiar with docker?
  2. Why do you want to use teensy4.1? Why do you want to use micro-ROS on freertos on teensy4.1? Are you familiar with freertos on teensy? Are you familiar with micro-ros on freertos? Teensyduino core does not run freertos. The freertos port of teensy uses Teensystudio as drivers. It is not native freertos.

If you are a beginner to ROS2 and micro-ROS, you should use ubuntu instead of Windows. Although it is possible to run Jazzy on Windows, it is difficult for beginners. You can use docker to run ROS2. But you still need the knowledge of ubuntu linux.

If you can install a ubuntu 24.04 pc or VM, you should be able to learn ROS2 and micro-ros better than on windows.

If you only have windows, you should learn vscode+ros2+docker and platformio.

If you are new to micro-ros, you should start with esp32 which is cheaper and easier than teensy4.1. The esp32 core runs freertos.

You may follow the wiki, https://github.com/hippo5329/micro_ros_arduino_examples_platformio/wiki

@ChoiYouJung
Copy link
Author

Thank you for your interest in my question.

  1. ROS2 runs on Linux. And micro-ros-agent also runs on Linux.
    We are only developing the Teensy 4.1 board (micro-ros-client) on Windows 10.

In the past, I have experience using Teensy 4.1 as bare-metal using the micro-ros-arduino library and example code from Github.
I am in a situation where I need to use FreeRTOS on the Teensy 4.1 board, and I wanted to know the possibility of using the library used in the micro-ros-arduino example after porting FreeRTOS, so I asked this question here.

@hippo5329
Copy link

hippo5329 commented Nov 4, 2024

There is another rtos, chibios on arduino , https://github.com/greiman/ChRt

And freertos,
https://github.com/juliandesvignes/FreeRTOS-Teensy4

I am not sure if it works.

@hippo5329
Copy link

hippo5329 commented Nov 4, 2024

[env:teensy41]
platform = teensy
board = teensy41
lib_deps =
    ${env.lib_deps}
    https://github.com/juliandesvignes/FreeRTOS-Teensy4.git

It can build blink_task and publisher with micro-ros and freertos. But I didn't test on hardware.

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

2 participants