ROS Melodic使用樂視奧比中光深度攝像頭

2021-10-05 02:17:01 字數 3939 閱讀 1299

sudo apt install ros-$ros_distro-rgbd-launch ros-$ros_distro-libuvc ros-$ros_distro-libuvc-camera ros-$ros_distro-libuvc-ros
sudo apt-get install ros-melodic-openni*
kinetic版本可以直接使用apt安裝:

編譯成功後,執行:

roslaunch astra_launch astra.launch
就可以在rviz訂閱image話題檢視:

寫入以下內容:

subsystem==

"usb"

, attr

=="0400"

, attr

=="2bc5"

, mode:

="0666"

, owner:

="root"

, group:

="video"

subsystem==

"usb"

, attr

=="0401"

, attr

=="2bc5"

, mode:

="0666"

, owner:

="root"

, group:

="video"

subsystem==

"usb"

, attr

=="0402"

, attr

=="2bc5"

, mode:

="0666"

, owner:

="root"

, group:

="video"

subsystem==

"usb"

, attr

=="0403"

, attr

=="2bc5"

, mode:

="0666"

, owner:

="root"

, group:

="video"

subsystem==

"usb"

, attr

=="0404"

, attr

=="2bc5"

, mode:

="0666"

, owner:

="root"

, group:

="video"

subsystem==

"usb"

, attr

=="0405"

, attr

=="2bc5"

, mode:

="0666"

, owner:

="root"

, group:

="video"

subsystem==

"usb"

, attr

=="0406"

, attr

=="2bc5"

, mode:

="0666"

, owner:

="root"

, group:

="video"

subsystem==

"usb"

, attr

=="0407"

, attr

=="2bc5"

, mode:

="0666"

, owner:

="root"

, group:

="video"

subsystem==

"usb"

, attr

=="0408"

, attr

=="2bc5"

, mode:

="0666"

, owner:

="root"

, group:

="video"

subsystem==

"usb"

, attr

=="0409"

, attr

=="2bc5"

, mode:

="0666"

, owner:

="root"

, group:

="video"

subsystem==

"usb"

, attr

=="040a"

, attr

=="2bc5"

, mode:

="0666"

, owner:

="root"

, group:

="video"

安裝uvc-camera包:

sudo apt-get install ros-melodic-uvc-camera
更改:ros_astra_launch/launch/astra.launch

新增如下(注意把/dev/video0替換為自己的裝置號)

"uvc_camera" type=

"uvc_camera_node" name=

"uvc_camera" output=

"screen"

/>

"width" type=

"int" value=

"320"

/>

"height" type=

"int" value=

"240"

/>

"fps" type=

"int" value=

"30"

/>

"frame" type=

"string" value=

"wide_stereo"

/>

"auto_focus" type=

"bool" value=

"false"

/>

"focus_absolute" type=

"int" value=

"0"/

>

<

!-- other supported params: auto_exposure, exposure_absolute, brightness, power_line_frequency --

>

"device" type=

"string" value=

"/dev/video0"

/>

"camera_info_url" type=

"string" value=

"file://$(find uvc_camera)/example.yaml"

/>

執行:

roslaunch astra_launch astra.launch
出現彩色影象:

樂視盒子刷入樂視TV的rom

如果,你看完以下警示,依然想刷機,那麼,請大膽刷吧,如果你覺得不合適,請等待官方的公升級包。1 此包只在c1s上測試過,運營商版本未經測試請勿刷此包,否則後果自負 2 公升級ui2.3版本之後,樂視網tv版內容必須登陸付費樂視帳號才可 這點與之前ui1.5不同 這是樂視傻x tv版策略 與本人無關 ...

樂視筆試題

1 輸入乙個整形陣列,陣列裡有正數也有負數。陣列中連續的乙個或多個正數組成子陣列,每個子陣列都有乙個和。求所有子陣列的最大值。時間複雜度o n 例如 輸入1,2,3,10,4,7,2,5 和最大的子陣列為3,10,4,7,2 因此輸出為該子陣列的和18 public class maxsubsum ...

樂視網張曙光任樂視網總編輯

8 月 15 日訊息,在連續發布了四封人事任命郵件後,樂視網在今天晚間再發兩份任命通知,任劉曉慶為樂視網法務副總裁,張曙光為為樂視網高階副總裁兼總編輯。而在今天上午,樂視網 ceo 梁軍首先連發三封內部郵件,任命袁斌 劉淑青等數字高管。中午又第四封內部郵件傳出,任命張昭為樂視網上市體系首席內容官 c...