depthai-ros
depthai-ros copied to clipboard
Pi4 4g stalls when running ros(noetic) node
Check if issue already exists could not find similar issues.
Running the node on laptop (ubuntu 20.04, noetic) installed with "sudo apt install ros-
Fixing this might fix Imu not working in rviz(working on this issue now) I just "sudo apt install ros-noetic-rviz-imu-plugin" on laptop not tested yet. // tested and now works on laptop//
Expected behavior Pi4 to run node /publishes topics/ and ros-networked laptop will do rviz and rqt-image-view to drive robot with. note: after installing node on laptop I had issues with rqt-image-view. I had to "pip3" uninstall pyqt5 and pyqt5-sip to get rqt/robot steer/image view and all other rqt related things to work again. pyqt5 were already "apt" installed on machine. Note camera working just fine with Pi it only crashes when node is run.
Attach system log
- Provide output of log_system_information.py
- can't do above > pi crashes, will have a look next time I start up the pi, where do I find this "log" --- see attached..
Additional context
I just bought this expensive (to me) hardware on a hobbyist budget and would greatly appreciate any help.
Would compiling from source healed any better results?
"architecture": "64bit ELF", "machine": "aarch64", "platform": "Linux-5.4.0-1077-raspi-aarch64-with-glibc2.29", "processor": "aarch64", "python_build": "default Nov 14 2022 12:59:47", "python_compiler": "GCC 9.4.0", "python_implementation": "CPython", "python_version": "3.8.10", "release": "5.4.0-1077-raspi", "system": "Linux", "version": "#88-Ubuntu SMP PREEMPT Mon Nov 28 14:31:37 UTC 2022", "win32_ver": "", "packages": [ "argcomplete==1.8.1", "atomicwrites==1.1.5", "attrs==19.3.0", "autobahn==17.10.1", "Automat==0.8.0", "bcrypt==3.1.7", "beautifulsoup4==4.8.2", "blinker==1.4", "blobconverter==1.3.0", "boto3==1.26.27", "botocore==1.29.27", "breezy==3.0.2", "catkin-pkg==0.4.24", "catkin-pkg-modules==0.4.24", "cbor==1.0.0", "certifi==2019.11.28", "chardet==3.0.4", "charset-normalizer==2.0.12", "Click==7.0", "cloud-init==22.2", "colorama==0.4.3", "command-not-found==0.3", "configobj==5.0.6", "constantly==15.1.0", "cov-core==1.15.0", "coverage==4.5.2", "cryptography==2.8", "cupshelpers==1.0", "cycler==0.10.0", "Cython==0.29.14", "dbus-python==1.2.16", "defer==1.0.6", "defusedxml==0.6.0", "Deprecated==1.2.7", "depthai==2.19.0.0", "depthai-sdk==1.2.4", "distro==1.4.0", "distro-info===0.23ubuntu1", "docutils==0.16", "dulwich==0.19.15", "empy==3.3.2", "entrypoints==0.3", "fastimport==0.9.8", "ffmpy3==0.2.4", "flake8==3.7.9", "gpg===1.13.1-unknown", "html5lib==1.0.1", "httplib2==0.14.0", "hyperlink==19.0.0", "idna==2.8", "ifcfg==0.18", "importlib-metadata==1.5.0", "incremental==16.10.1", "Jinja2==2.10.1", "jmespath==1.0.1", "jsonpatch==1.22", "jsonpointer==2.0", "jsonschema==3.2.0", "keyring==18.0.1", "kiwisolver==1.0.1", "language-selector==0.1", "lark-parser==0.8.1", "launchpadlib==1.10.13", "lazr.restfulclient==0.14.2", "lazr.uri==1.0.3", "lxml==4.5.0", "lz4==3.0.2+dfsg", "macaroonbakery==1.3.1", "MarkupSafe==1.1.0", "matplotlib==3.1.2", "mcap==0.0.15", "mcap-ros1-support==0.0.8", "mccabe==0.6.1", "mock==3.0.5", "more-itertools==4.2.0", "mpi4py==3.0.3", "mypy==0.761", "mypy-extensions==0.4.3", "netifaces==0.10.4", "nose==1.3.7", "nose2==0.9.1", "numpy==1.23.5", "oauthlib==3.1.0", "olefile==0.46", "opencv-contrib-python==4.5.5.62", "opencv-python==4.6.0.66", "packaging==20.3", "paramiko==2.6.0", "pbr==5.4.5", "pexpect==4.6.0", "Pillow==7.0.0", "pip==22.3.1", "pluggy==0.13.0", "protobuf==3.6.1", "psutil==5.5.1", "py==1.8.1", "py-ubjson==0.14.0", "pyasn1==0.4.2", "pyasn1-modules==0.2.1", "pycairo==1.16.2", "pycodestyle==2.5.0", "pycryptodomex==3.6.1", "pycups==1.9.73", "pydocstyle==2.1.1", "pydot==1.4.1", "pyflakes==2.1.1", "PyGithub==1.43.7", "Pygments==2.3.1", "PyGObject==3.36.0", "pygraphviz==1.5", "PyHamcrest==1.9.0", "PyJWT==1.7.1", "pymacaroons==0.13.0", "PyNaCl==1.3.0", "PyOpenGL==3.1.0", "pyOpenSSL==19.0.0", "pyparsing==2.4.6", "pypng==0.0.20", "PyQRCode==1.2.1", "PyQt5==5.14.1", "pyRFC3339==1.1", "pyrsistent==0.15.5", "pyserial==3.4", "pytest==4.6.9", "pytest-cov==2.8.1", "pytest-mock==1.10.4", "python-apt==2.0.0+ubuntu0.20.4.7", "python-dateutil==2.7.3", "python-debian===0.1.36ubuntu1", "python-gitlab==2.0.1", "python-gnupg==0.4.5", "python-snappy==0.5.3", "PyTrie==0.2", "pytube==12.1.0", "PyTurboJPEG==1.6.4", "pytz==2019.3", "pyusb==1.2.1", "pyxdg==0.26", "PyYAML==5.3.1", "Qt.py==1.3.7", "requests==2.26.0", "requests-unixsocket==0.2.0", "roman==2.0.0", "rosbags==0.9.11", "rosdep==0.21.0", "rosdep-modules==0.21.0", "rosdistro==0.8.3", "rosdistro-modules==0.8.3", "rosinstall==0.7.8", "rosinstall-generator==0.1.22", "rospkg==1.4.0", "rospkg-modules==1.4.0", "ruamel.yaml==0.17.21", "ruamel.yaml.clib==0.2.7", "s3transfer==0.6.0", "SecretStorage==2.3.1", "sentry-sdk==1.5.1", "service-identity==18.1.0", "setuptools==45.2.0", "simplejson==3.16.0", "sip==4.19.21", "six==1.14.0", "snowballstemmer==2.0.0", "sos==4.3", "soupsieve==1.9.5", "ssh-import-id==5.10", "systemd-python==234", "Twisted==18.9.0", "txaio==2.10.0", "typed-ast==1.4.1", "typing-extensions==3.7.4.1", "u-msgpack-python==2.1", "ubuntu-advantage-tools==27.6", "ufw==0.36", "unattended-upgrades==0.1", "urllib3==1.25.8", "vcstools==0.1.42", "wadllib==1.3.3", "wcwidth==0.1.8", "webencodings==0.5.1", "wheel==0.34.2", "wrapt==1.11.2", "wsaccel==0.6.2", "wstool==0.1.18", "zipp==1.0.0", "zope.interface==4.7.1", "zstandard==0.19.0" ], "usb": [ { "port": 2, "vendor_id": "0x2109", "product_id": "0x0817", "speed": "Super" }, { "port": 1, "vendor_id": "0x03f0", "product_id": "0x0e57", "speed": "Super" }, { "port": 0, "vendor_id": "0x1d6b", "product_id": "0x0003", "speed": "Super" }, { "port": 2, "vendor_id": "0x03e7", "product_id": "0x2485", "speed": "High" }, { "port": 1, "vendor_id": "0x1ea7", "product_id": "0x0066", "speed": "Full" }, { "port": 2, "vendor_id": "0x2109", "product_id": "0x2817", "speed": "High" }, { "port": 1, "vendor_id": "0x2109", "product_id": "0x3431", "speed": "High" }, { "port": 0, "vendor_id": "0x1d6b", "product_id": "0x0002", "speed": "High" } ], "uname": [ "Linux ubuntu 5.4.0-1077-raspi #88-Ubuntu SMP PREEMPT Mon Nov 28 14:31:37 UTC 2022 aarch64 aarch64" ]
Enabling desktop environment for RPi takes a lot of resources from it in base configuration, processing/displaying streams straight on RPi also doesn't help.
Last time I had issues with performance on RPI, what helped was overclocking, though with that you need some case with fans/heatsinks to protect it from overheating (like the one here, you can find it in most hobby shops).
Also, increasing swap will also help.
As for the rviz-imu-plugins
, it's not yet fixed on apt.
I had/have the same issue using the Pi camera. Pi camera works fine on 32bit OS but with the 64bit ,it starts up fine and crashes the Pi. I couldn't fix it but from memory, had something to do with MMAL and 64bit OS. I got it to working with using a different driver v4gl(something like that) or openCV.
I changed to Xbox kinect v1 cameras and got them working. They work great but mapping and object recognition is painfully slow( 9fs). Work load is handled by pi4. Still the pi doesn't crash.
If I were to guess. I think your ros node publishes continuously and fills up memory of pi. Not emptying the buffer as new frames come in? rviz-imi-plugins > work on laptop , not tested on Pi(been trying to solve this crashing)
I ran the node on my laptop for some time but didn't see any substantial memory increase. I'll try it on RPi in the next week, but I suspect that the problem lies somewhere else.
A potential cause is power brownout - I've just ordered a powered USB hub (MEGA4 - 4-Port USB 3.1) so I can have an external power for the PI and all peripherals with no danger of burning out the PI and / or running low on power.
Hi, unfortunately I am away for the holidays and will only be home after 5/1/2023
I tried the other exsamples and they mostly work fine. It seems the stereo_inertial_node.launch.py are only one that locks up the Pi.
I am using a oak-d series 2 if that helps
I also created a second workspace and tried to build from source, but that errored out.
when I am back I will upload a video of the issue
On Tue, 3 Jan 2023, 04:52 Brian Merritt, @.***> wrote:
A potential cause is power brownout - I've just ordered a powered USB hub (MEGA4 - 4-Port USB 3.1) so I can have an external power for the PI and all peripherals with no danger of burning out the PI and / or running low on power.
— Reply to this email directly, view it on GitHub https://github.com/luxonis/depthai-ros/issues/180#issuecomment-1369197323, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOFPTAQC4FCMAIHAUYYEZTLWQM5XJANCNFSM6AAAAAAS5ZYLBQ . You are receiving this because you authored the thread.Message ID: @.***>