Code Monkey home page Code Monkey logo

Comments (7)

kids0cn avatar kids0cn commented on June 8, 2024

and another question。What should I do to access the camera by website just like using a clover firmware?

from clover.

okalachev avatar okalachev commented on June 8, 2024

Hi.

clover.service is now located at ~/catkin_ws/src/clover/builder/assets/clover.service

Note, that it's basically intended for using with Raspbian, so the default username is pi. Change the username to yours if you want to use it.

The easiest way to start clover services (include mentioned web_video_server) is:

roslaunch clover clover.launch

from clover.

okalachev avatar okalachev commented on June 8, 2024

Looks like you have problems with ROS installation, because import tf2_ros doesn't work.

Maybe you used root for some rosdep manipulations so it made rosdep directory unaccessible to normal user. If so, restore owner of /home/drone/.ros/rosdep/ to your current user using chown.

from clover.

kids0cn avatar kids0cn commented on June 8, 2024

Thanks a lot。 I have fixed the problems
I found some scripts in the folder named "build" ,such as "image_init.sh","image_ros.sh" 。 I change the to install all the softwares in my rasp with ubuntu mate 18.04。 Now it looks like working fine。 The question above is caused by run the rosdep update by "sudo"。

Now , without connect to my drone and connect with rangefinder and any other sensors。 I run the selfcheck.py。it looks like
this。 Except the error messages caused by missing connecting with FUC,sensors。 Is there any other problems?

drone@clover-1286:~$ rosrun clover selfcheck.py
[INFO] [1596720185.811929]: Performing selfcheck...
[INFO] [1596720185.822232]: Image: no /etc/clover_version file, not the Clover image?
[INFO] [1596720185.828335]: Board: Raspberry Pi 3 Model B Plus Rev 1.3
[WARN] [1596720185.969915]: clover.service: Can't open /dev/mem: Permission denied
[WARN] [1596720185.980944]: clover.service: FATAL: ros.ws281x: [ws281x] native library init failed: mmap() failed
[WARN] [1596720185.991249]: clover.service: FATAL: ros.mavros: FCU: DeviceError:serial:open: No such file or directory (1274)
[WARN] [1596720185.997635]: clover.service: [led-16] process has died [pid 12530, exit code 1, cmd /home/drone/catkin_ws/devel/lib/ws281x/ws281x_node __name:=led __log:=/home/drone/.ros/log/f5fb20de-d7e1-11ea-9ed7-b827eb94cd61/led-16.log].
[WARN] [1596720186.004026]: clover.service: log file: /home/drone/.ros/log/f5fb20de-d7e1-11ea-9ed7-b827eb94cd61/led-16*.log
[WARN] [1596720186.010622]: clover.service: FATAL: ros.vl53l1x: VL53L1X: Can't start measurement: error -13
[WARN] [1596720186.016932]: clover.service: ERROR: ros.cv_camera./main_camera: failed to open device... do nothing: device_path /dev/video0 cannot be opened
[INFO] [1596720186.023118]: Network: OK
[WARN] [1596720189.058353]: FCU: no MAVROS state (check wiring)
[WARN] [1596720190.091735]: IMU: no IMU data (check flight controller calibration)
[WARN] [1596720191.121400]: Local position: no local position
[WARN] [1596720192.158438]: Velocity estimation: no velocity estimation
[INFO] [1596720193.199066]: Global position (GPS): no global position
[WARN] [1596720199.209358]: Preflight status: no data from FCU
[WARN] [1596720200.241538]: Main camera: main_camera: no images (is the camera connected properly?)
[INFO] [1596720200.295705]: ArUco markers: aruco_detect is not running
[INFO] [1596720200.321544]: Simple offboard node: OK
[WARN] [1596720200.849217]: Optical flow: no optical flow data (from Raspberry)
[WARN] [1596720202.932519]: Vision position estimate: no VPE or MoCap messages
[WARN] [1596720207.062529]: Rangefinder: no rangefinder data from Raspberry
[WARN] [1596720211.111230]: Rangefinder: no rangefinder data from PX4
[WARN] [1596720211.139386]: RPi health: your system is susceptible to throttling
[WARN] [1596720211.145864]: RPi health: power supply cannot provide enough power
[INFO] [1596720211.409880]: CPU usage: OK
[WARN] [1596720211.459439]: Boot duration: long Raspbian boot duration: 50.354s (systemd-analyze for analyzing)

from clover.

okalachev avatar okalachev commented on June 8, 2024

Well, without connection to all the sensors this tool can't say much.

from clover.

okalachev avatar okalachev commented on June 8, 2024

@sfalexrog, I don't understand why /dev/mem is needed for clover.service checks BTW.

from clover.

sfalexrog avatar sfalexrog commented on June 8, 2024

@sfalexrog, I don't understand why /dev/mem is needed for clover.service checks BTW.

That's an error from ws281x native library (which is just a part of the log), not from the clover.service checks themselves.

from clover.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.