Comments (10)
了解しました.以後気をつけます.
自分の環境ubuntu18.04, melodicでの
launchの出力全体は以下のようになっていました.
$ roslaunch coral_usb edgetpu_object_detector.launch INPUT_IMAGE:=/camera/rgb/image_raw
... logging to /home/shumpeiwakabayashi/.ros/log/4aaa27a2-a0e1-11ea-a66d-287fcf9948c3/roslaunch-shumpeiwakabayashi-ThinkPad-T495s-29977.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://shumpeiwakabayashi-ThinkPad-T495s:45251/
SUMMARY
========
PARAMETERS
* /edgetpu_object_detector/label_file: /home/shumpeiwaka...
* /edgetpu_object_detector/model_file: /home/shumpeiwaka...
* /rosdistro: melodic
* /rosversion: 1.14.5
NODES
/
edgetpu_object_detector (coral_usb/edgetpu_object_detector.py)
ROS_MASTER_URI=http://localhost:11311
process[edgetpu_object_detector-1]: started with pid [30985]
Traceback (most recent call last):
File "/home/shumpeiwakabayashi/coral_ws/src/coral_usb_ros/node_scripts/edgetpu_object_detector.py", line 14, in <module>
import cv2 # NOQA
ModuleNotFoundError: No module named 'cv2'
[edgetpu_object_detector-1] process has died [pid 30985, exit code 1, cmd /home/shumpeiwakabayashi/coral_ws/devel/lib/coral_usb/edgetpu_object_detector.py ~input:=/camera/rgb/image_raw __name:=edgetpu_object_detector __log:=/home/shumpeiwakabayashi/.ros/log/4aaa27a2-a0e1-11ea-a66d-287fcf9948c3/edgetpu_object_detector-1.log].
log file: /home/shumpeiwakabayashi/.ros/log/4aaa27a2-a0e1-11ea-a66d-287fcf9948c3/edgetpu_object_detector-1*.log
[edgetpu_object_detector-1] restarting process
ここから,cv2が見つからないと判断しました.
from coral_usb_ros.
source /opt/ros/melodic/setup.bash
source ~/coral_ws/devel/setup.bash
ipython
>> import cv2
これを試してエラーがでるかみてみてください
from coral_usb_ros.
エラー出ませんでした.
In [2]: print(cv2) <module 'cv2.cv2' from '/home/shumpeiwakabayashi/.local/lib/python2.7/site-packages/cv2/cv2.so'>
from coral_usb_ros.
先のlaunchをするときにもう一度sourceをし直してやってみてください。
あとterminalの出力を全部はってもらえると助かります。
from coral_usb_ros.
これはやりましたか?
sudo apt-get install python3-opencv
from coral_usb_ros.
すみません,opencvをアンインストールしていました.
インストールして無事動きました.お騒がせしました.
from coral_usb_ros.
@shmpwk
あとの人のためにterminalの出力と何コマンドを実行したかをここに書いておいてください。
from coral_usb_ros.
はい,
これを見て,セットアップしていました.
その手順におけるcoralの認識で
roslaunch coral_usb edgetpu_object_detector.launch INPUT_IMAGE:=/camera/rgb/image_raw
とした際に,terminal に No module named 'cv2'
と出力されました.
参照した説明ではopencvのインストールについて書いてなかったので,
sudo apt-get install python3-opencv
をする必要がありました.(もともと自分でopencvを入れたつもりでいたが,入っていなかった.)
from coral_usb_ros.
roslaunch coral_usb edgetpu_object_detector.launch INPUT_IMAGE:=/camera/rgb/image_raw
とした際に,terminal に No module named 'cv2'と出力されました.
問題が発生したときには、問題が再現できるlaunchを共有する、他の環境で再現しない場合にはterminalの出力結果を全て共有する、ことが重要です。
なかなか忘れがちですが、できるだけ多くの情報を共有することが基本なので。
terminalの出力結果で、他のエラーを何かしら見逃している可能性があるので、issueやメールをする場合はterminalの全ての出力結果をコピーペーストしてくれると、デバグがしやすくてありがたいです。
from coral_usb_ros.
ありがとうございます。
from coral_usb_ros.
Related Issues (20)
- tensorflow v2 model support HOT 6
- /edgetpu_object_detector/output/image is not published HOT 6
- Add some functions for own purposes HOT 5
- Run two models in one EdgeTPU USB HOT 2
- dynamic reconfigure in ROS noetic - missing import HOT 3
- catkin_make instead of catkin build failed HOT 10
- Project name in CMakeLists.txt is different from package name? HOT 3
- node publishes faster than receiving messages? HOT 4
- support pycoral
- dynamic_reconfigure goes wrong when edgetpu related nodes exist HOT 5
- support panorama images
- Support boundaries in panorama imags
- How to run demo HOT 26
- rosrun jsk_perception image_publisher.py does not work (?) HOT 1
- Tuple index out of range HOT 2
- noetic-jsk-perception failed HOT 9
- rviz support ? HOT 12
- RectArray output of panorama human pose estimator does not match PoseArray output
- catkin build hangs HOT 2
- ImportError: No module named '_edgetpu_cpp_wrapper' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coral_usb_ros.