A ROS package which can read video stream from Zenmuse-X3-Camera on M100 and publish it as sensor_msgs/Image. Must be compiled and launched on Manifold.
This package is based on dji_sdk_manifold_read_cam and dji-sdk/Manifold-Cam. Refer to them for more infomation.
-
Install all the prerequisites in dji-sdk/Manifold-Cam
-
(Optional) Disable lightdm for stability:
in
/etc/init/lightdm.conf
, line 12:Modify
runlevel [!06]
torunlevel [!026]
-
Add
xinit&
to a startup script, such as:echo -e '#!/bin/bash\nxinit&' > /home/ubuntu/pre_x3 chmod a+x /home/ubuntu/pre_x3
And add
/home/ubuntu/pre_x3
into/etc/rc.local
-
Add
export DISPLAY=:0
to your bashrc or remember to set this environment variable to THE USER WHO WILL RUN THE CODE -
(Maybe a reboot here)
-
Run
sudo -s
to grant root privilege, because the driver needs to operate many/dev
/sys
stuffs -
rosrun m100_x3 m100_x3_node
Same as 1, 6, 7 above