Skip to content

Latest commit

 

History

History

echo

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Echo

This code subscribes to echo and publishes on ack The data received on echo will be published on ack

Build and Flash

Generate the ROS libraries prior to building this example as instructed in the README of root directory (If done already, ignore)

Default mode of rosserial communication is over UART.

To use WiFi:

  1. Enable rosserial over WiFi

idf.py menuconfig -> Component config -> rosserial ->rosserial over WiFi using TCP

  1. 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 ack

On another new terminal

rostopic pub echo std_msgs/String "Hello World\!" --once