-
Notifications
You must be signed in to change notification settings - Fork 152
support for esp32-camera with freertos #176
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
Open
DorBenHarush
wants to merge
12
commits into
micro-ROS:foxy
Choose a base branch
from
DorBenHarush:esp32-camera
base: foxy
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
3f0379f
support for esp32-camera with freertos
DorBenHarush fb85bc8
Update NOTICE
DorBenHarush 9ea745f
Update config/freertos/esp32/create.sh
DorBenHarush 319893f
Update NOTICE
DorBenHarush 918c72a
Update NOTICE
DorBenHarush 87fd845
esp32cam notes
DorBenHarush 5d15605
Merge branch 'foxy' into esp32-camera
DorBenHarush 605eb76
IDF v4.1
DorBenHarush 3e163a2
retrigger checks
DorBenHarush fce6354
Merge branch 'esp32-camera' of https://github.com/DorBenHarush/micro_…
DorBenHarush 449bdc7
Update README.md
DorBenHarush 83f4e53
Update README.md
DorBenHarush File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,3 +31,7 @@ Robert Bosch GmbH | |
|
||
Boston Engineering | ||
Connor Lansdale <[email protected]> | ||
|
||
Dor Ben Harush | ||
Dor Ben Harush <[email protected]> | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,54 @@ | |
- You can run idf targets like `menuconfig` or `monitor` by specifing the target as an argument to the `build_firmware.sh` script | ||
- The GPIO pins for the configured serial port can be set with `menuconfig` (see `micro-ROS Transport Settings` menu) | ||
- ESP32 only runs in singlecore mode (`CONFIG_FREERTOS_UNICORE=y` setting) | ||
|
||
|
||
# Notes for ESP32-CAMERA | ||
|
||
- SPIRAM is requierd only for ESP32-CAMERA and can cause a fatal error in ESP32 (Enable in `menuconfig Component config > ESP32-specific` OR add `CONFIG_ESP32_SPIRAM_SUPPORT=y` to `sdkconfig.defaults` file). | ||
- Make sure that `rtc_gpio_desc` array is supported in `menuconfig: Component config > Driver configurations > RTCIO configuration` (set to TRUE) | ||
OR write this line `CONFIG_RTCIO_SUPPORT_RTC_GPIO_DESC=y` to `sdk.defaults`. | ||
- Choose your camera pins configuration in `menuconfig Camera configuration > Camera pins`. (`BOARD_ESP32CAM_AITHINKER` is default). | ||
- In order to view the images you will need to create a cv_bridge: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would like to see this Python app as a |
||
``` | ||
#!/usr/bin/env python3 | ||
import rclpy | ||
from rclpy.node import Node | ||
from std_msgs.msg import String | ||
from cv_bridge import CvBridge, CvBridgeError | ||
from sensor_msgs.msg import CompressedImage | ||
import cv2 | ||
import numpy as np | ||
|
||
|
||
|
||
|
||
class MinimalSubscriber(Node): | ||
|
||
def __init__(self, ): | ||
super().__init__('minimal_subscriber') | ||
self.subscription = self.create_subscription(CompressedImage, 'freertos_picture_publisher', self.listener_callback, 10) | ||
self.subscription # prevent unused variable warning | ||
self.bridge = CvBridge() | ||
def listener_callback(self, image_message): | ||
self.get_logger().info('recieved an image') | ||
|
||
#recieve image and co nvert to cv2 image | ||
cv2.imshow('esp32_image', self.cv_image) | ||
cv2.waitKey(3) | ||
|
||
|
||
|
||
|
||
def main(args=None): | ||
rclpy.init(args=args) | ||
minimal_subscriber = MinimalSubscriber() | ||
|
||
rclpy.spin(minimal_subscriber) | ||
minimal_subscriber.destroy_node() | ||
rclpy.shutdown() | ||
|
||
if __name__ == '__main__': | ||
main() | ||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regarding this, is possible to explain it a README.md inside the
freertos_apps
app folder?