ROS2 packages uartprotocol
Install my packages
mkdir -p ~/mark_serial_ws/src
cd ~/mark_serial_ws/src
git clone https://github.com/imchin/ROS2_markSerial .
cd ~/mark_serial_ws
colcon build
source ~/mark_serial_ws/install/setup.bash
cd ~/mark_serial_ws/src/markserial_pkg/config
code setup_markSerial.yaml
yaml is contain : (Idmcu,Port,Setup_Pub,path_arduino)
-
In example Idmcu is 1.
-
In example Idmcu is "/dev/ttyUSB0".
-
Informat : [ [Idtopic,Name_topic,XXX.msg], [Idtopic2,Name_topic2,XXX2.msg], ........ ]
In example is [ [1,"Pose","Pose.msg"] ]
-
In example is "arduino"
cd ~/mark_serial_ws/src/markserial_pkg/scripts
python create_library_arduino.py
can now operate the library in arduino ide.
ros2 run markserial_pkg markserial_node