ROS 2 drvierΒΆ
For ROS 2 users, examples provided from ADLINK are available at the following link: https://github.com/Adlink-ROS/neuron_library_example.git
Note
These examples are only tested under ROS 2 foxy.
Install ROS.
Create a workspace and git clone the following package from github.
# You can name your workspace.
mkdir -p neuronlib_example_ws/src
cd neuronlib_example_ws/src
git clone https://github.com/Adlink-ROS/neuron_library_example.git
cd ..
Build the ROS 2 package.
colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release
Source the package.
#Source the package everytime you open a new terminal
source install/local_setup.bash
Tutorials of the examples are provided at the links below.
GPIO example: https://github.com/Adlink-ROS/neuron_library_example/tree/master/gpio_example
I2C example: https://github.com/Adlink-ROS/neuron_library_example/tree/master/i2c_example
LED example: https://github.com/Adlink-ROS/neuron_library_example/tree/master/led_example
Serial example: https://github.com/Adlink-ROS/neuron_library_example/tree/master/serial_example
PWM example: https://github.com/Adlink-ROS/neuron_library_example/tree/master/pwm_example
SPI example: https://github.com/Adlink-ROS/neuron_library_example/tree/master/spi_example