yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
ROS-WiFi Camera Module📖
1.Basic usage
  • 1. Computer configuration esp32 instruction
  • 2. Viewing camera on ROS2
  • 3. Camera screen changes
  • 4. Preparation(ReadMe)
2.mediapipe usage
  • 0.Installation of media pipe
  • 1. Hand detection
  • 2. Posture detection
  • 3. Overall inspection
  • 4. Face detection
  • 5. Face recognition
  • 6. Facial effects
  • 7. 3D object recognition
  • 8. Brush
  • 9. Finger control
  • 10. Gesture recognition
3.Opencv usage
  • 1. Open Source CV Getting started
  • 2. Geometric transformation
  • 3. Image processing and drawing text line segments
  • 4. Image beautification
  • 5. Color recognition
  • 6. Object recognition
  • 7. QR code recognition
4.Display screen on the APP
  • 1. YahboomCam APP screen view
  • 2. ROS Robot APP screen view
Download
  • Code
  • VM_File
  • Tools
Download ZIP

Welcome to ROS-WiFi Camera Module repository

2. Viewing camera on ROS2

Viewing camera on ROS2

Viewing camera on ROS20. Install Docker on a Linux system1. Start ROS Wifi image transmission module ROS2 agentPublishing nodesTopic informationMessage typeTopic posting frequency2.ROS2 obtains camera image3.View images in RVIZ4.matters needing attention

0. Install Docker on a Linux system

# **If using a system provided by the data, skip this step**
sudo apt update
sudo apt install docker.io docker-compose
docker -v

Download and install Docker as shown in the picture image-2024030900016

1. Start ROS Wifi image transmission module ROS2 agent

  1. First, start the STA mode of the ROS Wifi image transmission module (default start) and allow ESP32 to connect to an internet enabled WiFi in the local environment. Note: When using AP mode, you cannot enter the proxy because entering the proxy requires a network, and AP mode does not have a network
  2. The proxy host also needs to be connected to the same local area network as the ROS Wifi image transmission module Proxy host: It is a Linux system with ROS2 (Humble version) installed
  3. Query the IP address of the proxy host Enter the command ifconfig image-2023032900001
  4. Then use a serial port tool to configure the ROS Wifi image transmission module's ROS2 proxy host address
  • For example, in the above figure, my IP address is 192.168.2.100, and the configuration of the serial port is shown in the figure image-2023032900002

  • After clicking send, there are two types of information to print, both of which are configured

    1. If the original proxy IP of the ROS Wifi image transmission module is different from the current one, the current proxy IP will be updated and restarted image-2023032900003
    2. If the original proxy IP of the ROS Wifi image transmission module is the same as now, the ROS Wifi image transmission module will return an OK message image-2023032900004
  1. After completing the proxy configuration of the ROS Wifi image transmission module, execute the following command on the proxy host
xxxxxxxxxx
# If the virtual machine using the data runs the command directly
sh start_Camera_computer.sh
xxxxxxxxxx
# Not a virtual machine provided by the data
docker run -it --rm -v /dev:/dev -v /dev/shm:/dev/shm --privileged --net=host microros/micro-ros-agent:humble udp4 --port 9999 -v4
  • This 9999 port will be used to enter the proxy, so I need to avoid using this port in my future development

The successful entry result is shown in the figure: image-2023032900005 There must be so much information to correctly activate the agent. Missing one may require manually powering off and resetting the ROS Wifi image transmission module According to the proxy results in the above figure, the IP of the ROS Wifi image transmission module can be obtained as 192.168.2.114

  1. Query ROS2 nodes, topic information, topic publishing frequency, and topic message types published by the ROS Wifi image transmission module

Publishing nodes

image-2023032900007

Topic information

image-2023032900006 image-2023032900008

Message type

image-2023032900009

Topic posting frequency

image-2023032900010

2.ROS2 obtains camera image

Note: If using a virtual machine provided in the data, only refer to step 4

  1. First, create a folder and execute the following command
xxxxxxxxxx
mkdir -p ~/yahboomcar_ws/src
  1. Place the provided yahboom_esp32_camera in the path you just created and unzip it image-2023032900011
  2. Then compile the feature pack and add the environment
xxxxxxxxxx
colcon build
echo "source ~/yahboomcar_ws/install/setup.bash " >> ~/.bashrc
source ~/.bashrc
  1. Run the command to open the camera screen
xxxxxxxxxx
ros2 run yahboom_esp32_camera sub_img

image-2023032900012

3.View images in RVIZ

  1. Under the premise that ROS2 obtains the camera image, open the installed rviz software
​x
rviz2 #rviz/rviz2

  1. Replace the topic of fixed frame with /esp32_img image-2023032900013
  2. Then load the image of this topic image-2023032900014
  3. Finally, rviz displays the image of the camera image-2023032900015

4.matters needing attention

  1. If the host actively disconnects the agent, the ROS Wifi image transmission module needs to be manually powered off and restarted before it can be restored and connected to the agent
  2. This port of 9999 will be used for proxy entry, so I should avoid using this port in my future development
  3. The use of proxies can only be configured through STA (Local Area Network) mode.
Computer configuration esp32 instruction
Camera screen changes

COMPANY

  • About us
  • Team Style
  • Blog

LEARNING & EXPLORATION

  • Tutorials
  • Edge AI hardware
  • Educational robots
  • Embedded intelligent hardware

WHERE TO BUY

  • Yahboom Online Store
  • Amazon
  • Alibaba
  • AliExpress
  • Mercado

TECHNOLOGY SUPPORT

  • Email: support@yahboom.com

BE A DISTRIBUTOR

  • Email: sales@yahboom.com
QR Code

Copyright © 2017-2026 Yahboom. All Rights Reserved.

EN/中文