This code publishes data on the topic chatter
Generate the ROS libraries prior to building this example as instructed in the README of root directory
Default mode of rosserial communication is over UART.
To use WiFi:
- Enable rosserial over WiFi
idf.py menuconfig
-> Component config
-> rosserial
->rosserial over WiFi using TCP
- Enter WiFi and server details
$ export ESPPORT=/dev/ttyUSB0
$ idf.py build flash
On a new terminal
$ roscore
On another new terminal
-- UART
$ rosrun rosserial_python serial_node.py _baud:=11520
-- WiFi
$ rosrun rosserial_python serial_node.py tcp
On another new terminal
$ rostopic echo chatter