Open jschrier opened 2 years ago
A minimalistic code that only supports the left and right motors and LED blinking (needed for this first build tutorial) can be found in:
You'll also need to add a "as_ap": false
entry to the network
dictionary in the hb.json
file.
Related: It appears that the firmware code used in the lessons (https://github.com/hadabot/hadabot_main/tree/master/content/lessons/build_hadabot/m01_setup_esp32/firmware/ros2_interface/uhadabot) is out of sync with the other firmware code (https://github.com/hadabot/hadabot_main/tree/master/firmware/uhadabot), e.g. in the range sensor topic name
In step: Build Hadabot: Set up the ESP32 (using CLI tools) to interface with ROS 2
Code in
hadabot_main/content/lessons/build_hadabot/m01_setup_esp32/firmware/ros2_interface/uhadabot/main.py
fails to execute successfully on ESP32 (so far unattached to anything except a USB serial port)Gleaning from the error messages below, it expects a
as_ap
key in thehb.json
file (but none is created bysetup_hadabot_config.py
).There also appears to be some problem related to creating an
oled
attribute in the class (this seems like it sets up some oled display hardware that is not present in the kit.). I also tried commenting this out, but then there areHere's the serial output upon running this on a cleanly-flashed device: