Difference between revisions of "OpenCV Foxy 20210414 Notes and Logs"
From wikidb
(Created page with "<pre> opencv20210414.txt April 14, 2021 eepp@hood:src$ cd opencv_ros2sub/src eepp@hood:src$ cp ../../image_sub/src/image_subscriber_experiment_oop.cpp opencv_exp.cpp modif...") |
|||
Line 3: | Line 3: | ||
April 14, 2021 | April 14, 2021 | ||
+ | |||
+ | eepp@hood:eepp_ws$ cd src/ | ||
+ | eepp@hood:src$ ros2 pkg create --build-type ament_cmake opencv_ros2sub | ||
+ | going to create a new package | ||
+ | package name: opencv_ros2sub | ||
+ | destination directory: /home/eepp/eepp_ws/src | ||
+ | package format: 3 | ||
+ | version: 0.0.0 | ||
+ | description: TODO: Package description | ||
+ | maintainer: ['eepp <eepp@todo.todo>'] | ||
+ | licenses: ['TODO: License declaration'] | ||
+ | build type: ament_cmake | ||
+ | dependencies: [] | ||
+ | creating folder ./opencv_ros2sub | ||
+ | creating ./opencv_ros2sub/package.xml | ||
+ | creating source and include folder | ||
+ | creating folder ./opencv_ros2sub/src | ||
+ | creating folder ./opencv_ros2sub/include/opencv_ros2sub | ||
+ | creating ./opencv_ros2sub/CMakeLists.txt | ||
+ | eepp@hood:src$ | ||
+ | |||
+ | |||
+ | |||
+ | eepp@hood:src$ cd .. | ||
+ | eepp@hood:eepp_ws$ colcon build --symlink-install --parallel-workers 1 | ||
+ | Starting >>> cpp_pubsub | ||
+ | Finished <<< cpp_pubsub [0.31s] | ||
+ | Starting >>> image_experiment | ||
+ | Finished <<< image_experiment [0.26s] | ||
+ | Starting >>> opencv_ros2sub | ||
+ | Finished <<< opencv_ros2sub [1.67s] | ||
+ | |||
+ | Summary: 3 packages finished [2.44s] | ||
+ | |||
+ | |||
+ | |||
eepp@hood:src$ cd opencv_ros2sub/src | eepp@hood:src$ cd opencv_ros2sub/src | ||
Line 166: | Line 202: | ||
What does OpenCV's cvWaitKey( ) function do? | What does OpenCV's cvWaitKey( ) function do? | ||
https://stackoverflow.com/questions/5217519/what-does-opencvs-cvwaitkey-function-do | https://stackoverflow.com/questions/5217519/what-does-opencvs-cvwaitkey-function-do | ||
+ | |||
+ | |||
</pre> | </pre> |
Latest revision as of 11:35, 19 April 2021
opencv20210414.txt April 14, 2021 eepp@hood:eepp_ws$ cd src/ eepp@hood:src$ ros2 pkg create --build-type ament_cmake opencv_ros2sub going to create a new package package name: opencv_ros2sub destination directory: /home/eepp/eepp_ws/src package format: 3 version: 0.0.0 description: TODO: Package description maintainer: ['eepp <eepp@todo.todo>'] licenses: ['TODO: License declaration'] build type: ament_cmake dependencies: [] creating folder ./opencv_ros2sub creating ./opencv_ros2sub/package.xml creating source and include folder creating folder ./opencv_ros2sub/src creating folder ./opencv_ros2sub/include/opencv_ros2sub creating ./opencv_ros2sub/CMakeLists.txt eepp@hood:src$ eepp@hood:src$ cd .. eepp@hood:eepp_ws$ colcon build --symlink-install --parallel-workers 1 Starting >>> cpp_pubsub Finished <<< cpp_pubsub [0.31s] Starting >>> image_experiment Finished <<< image_experiment [0.26s] Starting >>> opencv_ros2sub Finished <<< opencv_ros2sub [1.67s] Summary: 3 packages finished [2.44s] eepp@hood:src$ cd opencv_ros2sub/src eepp@hood:src$ cp ../../image_sub/src/image_subscriber_experiment_oop.cpp opencv_exp.cpp modified package.xml eepp@hood:eepp_ws$ colcon build --symlink-install --parallel-workers 1 Starting >>> cpp_pubsub Finished <<< cpp_pubsub [0.32s] Starting >>> image_experiment Finished <<< image_experiment [0.28s] Starting >>> opencv_ros2sub Finished <<< opencv_ros2sub [0.61s] Summary: 3 packages finished [1.39s] eepp@hood:opencv_ros2sub$ mv CMakeLists.txt CMakeLists.txt.org eepp@hood:opencv_ros2sub$ cp ../image_sub/CMakeLists.txt . eepp@hood:opencv_ros2sub$ ls src/ opencv_exp.cpp eepp@hood:opencv_ros2sub$ emacs CMakeLists.txt& eepp@hood:eepp_ws$ colcon build --symlink-install --parallel-workers 1 Starting >>> cpp_pubsub Finished <<< cpp_pubsub [0.30s] Starting >>> image_experiment Finished <<< image_experiment [0.27s] Starting >>> opencv_ros2sub Finished <<< opencv_ros2sub [8.66s] eepp@hood:eepp_ws$ eepp@hood:eepp_ws$ eepp@hood:eepp_ws$ eepp@hood:eepp_ws$ eepp@hood:eepp_ws$ colcon build --symlink-install --parallel-workers 1 Starting >>> cpp_pubsub Finished <<< cpp_pubsub [0.30s] Starting >>> image_experiment Finished <<< image_experiment [0.27s] Starting >>> opencv_ros2sub Finished <<< opencv_ros2sub [8.66s] Summary: 3 packages finished [9.42s] eepp@hood:eepp_ws$ eepp@hood:eepp_ws$ eepp@hood:eepp_ws$ ls install/opencv_ros2sub/ lib/ share/ eepp@hood:eepp_ws$ ls install/opencv_ros2sub/lib/opencv_ros2sub/ opencv_exp eepp@hood:eepp_ws$ ros2 run opencv_ros2sub opencv_exp --ros-args -r image:=image_raw Package 'opencv_ros2sub' not found eepp@hood:eepp_ws$ source install/setup.bash eepp@hood:eepp_ws$ ros2 run opencv_ros2sub opencv_exp --ros-args -r image:=image_raw [INFO] [1618427867.615805228] [Image_Subscriber_OOP_Test]: I See: bgr8 [INFO] [1618427867.626712599] [Image_Subscriber_OOP_Test]: I See: bgr8 [INFO] [1618427867.703057195] [Image_Subscriber_OOP_Test]: I See: bgr8 [INFO] [1618427867.802989080] [Image_Subscriber_OOP_Test]: I See: bgr8 [INFO] [1618427867.903032945] [Image_Subscriber_OOP_Test]: I See: bgr8 [INFO] [1618427868.003011756] [Image_Subscriber_OOP_Test]: I See: bgr8 [INFO] [1618427868.103048156] [Image_Subscriber_OOP_Test]: I See: bgr8 [INFO] [1618427868.203253081] [Image_Subscriber_OOP_Test]: I See: bgr8 [INFO] [1618427868.303285808] [Image_Subscriber_OOP_Test]: I See: bgr8 [INFO] [1618427868.403054188] [Image_Subscriber_OOP_Test]: I See: bgr8 [INFO] [1618427868.503039317] [Image_Subscriber_OOP_Test]: I See: bgr8 [INFO] [1618427868.603082544] [Image_Subscriber_OOP_Test]: I See: bgr8 [INFO] [1618427868.703050176] [Image_Subscriber_OOP_Test]: I See: bgr8 [INFO] [1618427868.803016005] [Image_Subscriber_OOP_Test]: I See: bgr8 [INFO] [1618427868.903097713] [Image_Subscriber_OOP_Test]: I See: bgr8 [INFO] [1618427869.003113560] [Image_Subscriber_OOP_Test]: I See: bgr8 [INFO] [1618427869.103804812] [Image_Subscriber_OOP_Test]: I See: bgr8 [INFO] [1618427869.203113771] [Image_Subscriber_OOP_Test]: I See: bgr8 [INFO] [1618427869.303319075] [Image_Subscriber_OOP_Test]: I See: bgr8 ^C[INFO] [1618427869.318951420] [rclcpp]: signal_handler(signal_value=2) edited opencv_exp.cpp eepp@hood:eepp_ws$ eepp@hood:eepp_ws$ colcon build --symlink-install --parallel-workers 1 Starting >>> cpp_pubsub Finished <<< cpp_pubsub [0.30s] Starting >>> image_experiment Finished <<< image_experiment [0.27s] Starting >>> opencv_ros2sub Finished <<< opencv_ros2sub [7.42s] Summary: 3 packages finished [8.19s] eepp@hood:eepp_ws$ eepp@hood:eepp_ws$ eepp@hood:eepp_ws$ eepp@hood:eepp_ws$ eepp@hood:eepp_ws$ ros2 run opencv_ros2sub opencv_exp --ros-args -r image:=image_raw [INFO] [1618428375.230569946] [Opencv_Exp]: I See: bgr8 [INFO] [1618428375.318944890] [Opencv_Exp]: I See: bgr8 [INFO] [1618428375.417264149] [Opencv_Exp]: I See: bgr8 [INFO] [1618428375.517579343] [Opencv_Exp]: I See: bgr8 [INFO] [1618428375.617117788] [Opencv_Exp]: I See: bgr8 [INFO] [1618428375.717301442] [Opencv_Exp]: I See: bgr8 [INFO] [1618428375.817265854] [Opencv_Exp]: I See: bgr8 [INFO] [1618428375.917161652] [Opencv_Exp]: I See: bgr8 [INFO] [1618428376.017286810] [Opencv_Exp]: I See: bgr8 [INFO] [1618428376.117262211] [Opencv_Exp]: I See: bgr8 [INFO] [1618428376.217113295] [Opencv_Exp]: I See: bgr8 [INFO] [1618428376.317394873] [Opencv_Exp]: I See: bgr8 [INFO] [1618428376.417419870] [Opencv_Exp]: I See: bgr8 [INFO] [1618428376.517113769] [Opencv_Exp]: I See: bgr8 [INFO] [1618428376.617302724] [Opencv_Exp]: I See: bgr8 ^C[INFO] [1618428376.686146224] [rclcpp]: signal_handler(signal_value=2) eepp@hood:eepp_ws$ cp opencv_exp.cpp opencv_exp.cpp.bak01 -------------------- http://10.0.0.9/wiki/index.php/Cam_shift_tracker.cpp_v1 Getting Started With OpenCV in ROS 2 Foxy Fitzroy (Python) https://automaticaddison.com/getting-started-with-opencv-in-ros-2-foxy-fitzroy-python/ 4/15/21 add cv_bridge not CMake file test TERMINAL 1 eepp@hood:~$ source ~/image_ws/install/setup.bash eepp@hood:~$ ros2 run image_publisher image_publisher_node /dev/video0 [INFO] [1618505195.586979521] [ImagePublisher]: param_change_callback TERMINAL 2 eepp@hood:eepp_ws$ ros2 topic list ros2 run opencv_ros2sub opencv_exp --ros-args -r image:=image_raw CMakeLists.txt helpful in /home/eepp/image_ws/src/image_pipeline/image_view What does OpenCV's cvWaitKey( ) function do? https://stackoverflow.com/questions/5217519/what-does-opencvs-cvwaitkey-function-do