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 arduino build and install on firmware #5

Open
rbonghi opened this issue Apr 13, 2020 · 3 comments
Open

Add arduino build and install on firmware #5

rbonghi opened this issue Apr 13, 2020 · 3 comments

Comments

@rbonghi
Copy link
Member

rbonghi commented Apr 13, 2020

Check build package teensy or change to arduino nano

  • Install teensyduino ARM

Install libraries

libraries
https://github.com/adafruit/Adafruit_NeoPixel
Install arduino-core and clone Adafruit_NeoPixel

Example from
https://github.com/leggedrobotics/darknet_ros/tree/master/darknet_ros

# Download yolov2-tiny.weights
set(PATH "${CMAKE_CURRENT_SOURCE_DIR}/yolo_network_config/weights")
set(FILE "${PATH}/yolov2-tiny.weights")
message(STATUS "Checking and downloading yolov2-tiny.weights if needed ...")
if (NOT EXISTS "${FILE}")
  message(STATUS "... file does not exist. Downloading now ...")
  execute_process(COMMAND wget http://pjreddie.com/media/files/yolov2-tiny.weights -P ${PATH})
endif()

Teensy 3.2 (or MK20DX256)
https://www.pjrc.com/teensy/td_download.html
https://www.pjrc.com/teensy/loader_cli.html
ros-drivers/rosserial#90

arduino-cmake
https://github.com/queezythegreat/arduino-cmake
http://wiki.ros.org/rosserial_arduino

Example setup arduino:
https://github.com/IntelligentRoboticsLabs/CSUROS/tree/master/csuro_arduino

rbonghi added a commit that referenced this issue Apr 13, 2020
@rbonghi
Copy link
Member Author

rbonghi commented Apr 13, 2020

Download from github

https://gist.github.com/steinwaywhw/a4cd19cda655b8249d908261a62687f8

curl --silent "https://api.github.com/repos/adafruit/Adafruit_NeoPixel/releases/latest" | # Get latest release from GitHub api
    grep '"tag_name":' |                                                 # Get tag line
    sed -E 's/.*"([^"]+)".*/\1/' |
    xargs -I {} curl -o latest.zip -sOL "https://github.com/adafruit/Adafruit_NeoPixel/archive/"{}'.zip'

rbonghi added a commit that referenced this issue Apr 14, 2020
@rbonghi
Copy link
Member Author

rbonghi commented Apr 14, 2020

Fix these warnings:

Policy CMP0038 is not set: Targets may not link directly to themselves.
Run "cmake --help-policy CMP0038" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.

This warning is for project developers. Use -Wno-dev to suppress it.

rbonghi added a commit that referenced this issue Apr 14, 2020
@rbonghi
Copy link
Member Author

rbonghi commented Apr 15, 2020

Open issue on ros-drivers/rosserial#487

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

1 participant