Conversation
* Example app for publishing information from camera * add camera option to menuconfig and allowing it.
|
Thank you very much for your contribution, @DorBenHarush. In order for this pull request to be merged, please sign-off your commit ( |
|
Don't forget the sign-off tag, please, which requires a force push ( |
|
relates to micro-ROS/micro_ros_setup/pull/176 |
donRaphaco
left a comment
There was a problem hiding this comment.
I tested the example on my esp32-cam board and had no problems there.
apps/take_picture/app.c
Outdated
| #define BOARD_WROVER_KIT | ||
| #define BOARD_ESP32CAM_AITHINKER |
There was a problem hiding this comment.
Is it possible to add an option in menuconfig where one board is selected?
There was a problem hiding this comment.
According to espressif the only difference is in the sdkconfig.defaults file.
In this line : CONFIG_ESP32_SPIRAM_SUPPORT=y
the line can be added menually like I did or it can be added in the menuconfig (Enable PSRAM).
Src: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/build-system.html#selecting-idf-target
and https://github.com/espressif/esp32-camera
There was a problem hiding this comment.
Sorry I should have been more precise.
What I mean is that there are two defines here #define BOARD_WROVER_KIT and #define BOARD_ESP32CAM_AITHINKER they define which camera pinout to use (see Lines 35-79 ) and should be mutually exclusive.
Therefore I suggest to add an option to menuconfig where one of the two can be selected, which would also make it easier to add a new camera pinout for example the ESP-EYE development board.
There was a problem hiding this comment.
Check my last commit I added the option to choose camera pinout.
apps/take_picture/app.c
Outdated
| @@ -0,0 +1,197 @@ | |||
| /** | |||
| * This example takes a picture every 5s. | |||
| Example src: https://github.com/espressif/esp32-camera.git | |||
There was a problem hiding this comment.
@ralph-lange parts from this example come from the example here. Do we need to mention that in 3rd-party-licenses.txt?
The license there is also Apache 2.0
There was a problem hiding this comment.
Yes, all details (version, copyright statement, original license text) have to be provided in the 3rd-party-licenses.txt file, please. Furthermore, a short summary (one list item with one or two sentences) should go into the License section in README.md.
* Now it is possible to choose camera pinout in the menuconfig Signed-off-by: Dor Ben Harush [email protected]
apps/take_picture/app.c
Outdated
| rclc_executor_spin_some(&executor, 100); | ||
| usleep(100000); | ||
| //takes picture | ||
| pic = esp_camera_fb_get(); |
|
Now, after this issue is solved i intend to create a new rclc_demo for the esp32camera. suggestions and advices are welcomed. |
|
Hello @DorBenHarush this the last commit solves micro-ROS/micro_ros_setup#187? Please be aware that |
|
Hi @pablogs9, No this coomit raises the issue. I have noticed that |
this line : CONFIG_ESP32_SPIRAM_SUPPORT=y create a problem while creating firmware for esp32. Enable SPIRAM in `menuconfig`: Component config > ESP32-specific
|
I have decided to change the pixel_format to jpeg to increase the resulution. In order to view the images I created a cv_bridge. |
| endmenu | ||
|
|
||
|
|
||
| menu "Camera configuration" |
There was a problem hiding this comment.
Is there a possibility that we can set this as an application-specific configuration?
There was a problem hiding this comment.
I have opened a PR for this here. if approved the full camera configurion will be inside the menuconfig only when esp32-camera repository is in the components directory (esp-idf/components).
| CONFIG_ESP_MAIN_TASK_STACK_SIZE=3000 | ||
| CONFIG_FREERTOS_UNICORE=y | ||
| CONFIG_ESP_TASK_WDT=n | ||
| CONFIG_RTCIO_SUPPORT_RTC_GPIO_DESC=y |
There was a problem hiding this comment.
Is there a possibility that we can set this as an application-specific configuration?
There was a problem hiding this comment.
Related to: micro-ROS/micro_ros_setup#176 (comment)
Maybe we can just explain how to configure this in the app README.md.
There was a problem hiding this comment.
I'll write a detailed REAMDE.md and add it to app.
f08eeed to
fcd886e
Compare
Example app for publishing information from camera
add camera option to menuconfig and allowing it.
Signed-off-by: Dor Ben Harush [email protected]