Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP32 Drive with C++ node from PC over Wifi #23

Closed
noshluk2 opened this issue Aug 15, 2023 · 7 comments
Closed

ESP32 Drive with C++ node from PC over Wifi #23

noshluk2 opened this issue Aug 15, 2023 · 7 comments
Assignees
Labels
Development creating source code

Comments

@noshluk2
Copy link
Member

  • Make esp32 subscribe cmd_vel topic of geometric_msgs/Twist type
  • use telop twist keyboard to drive robot running from pc
@ibrahimmansur4
Copy link

The whole folder named esp32_drive committed should be added to the /home/ibrahim/mros_ws/firmware/freertos_apps/apps path

@ibrahimmansur4
Copy link

do the steps told in #18 for serial setup.
keep in mind in step 8 to change the name of project from pingpong to the folder name with which you saved.
After source installation step check the topic list with : ros2 topic list
Then run the keyboard : ros2 run teleop_twist_keyboard teleop_twist_keyboard
And in another terminal : ros2 topic echo /cmd_vel

@ibrahimmansur4
Copy link

Code taken from this repo : https://github.com/Reinbert/ros_esp32cam_diffdrive
Video found for udp setup : https://www.youtube.com/watch?v=RdbH1-_UMBQ&t=204s

@ibrahimmansur4
Copy link

was not able to build the package after some updates

Image

@ibrahimmansur4
Copy link

/opt/ros/humble/lib$ sudo ln -s libfastrtps.so.2.6.6 libfastrtps.so.2.6.5
the required file was updated to a newer version.
had to link the new file to old one to resolve issue

@ibrahimmansur4
Copy link

now setup of micro ros not required.using platform.io code can be written in cpp and other header files can be automatically intergated. the build and flash steps not required manually. esp idf can do it.
after uploading micro ros code to esp on the terminal start the communication on the port only.

@ibrahimmansur4
Copy link

https://github.com/micro-ROS/micro_ros_platformio

dependency for micro ros in platformio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development creating source code
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants