Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gazeboのxtionをinputにしてimage_view2を立ち上げるとエラーが出る. #1112

Closed
otsubo opened this issue Sep 4, 2015 · 2 comments

Comments

@otsubo
Copy link
Contributor

otsubo commented Sep 4, 2015

roslaunch hrpsys_gazebo_tutorials gazebo_hrp2jsknt_no_controllers.launch
rtmlaunch hrpsys_gazebo_tutorials hrp2jsknt_hrpsys_bringup.launch

して

<launch>
  <arg name="INPUT_IMAGE" default="/xtion/depth/image_raw"/>
  <arg name="INPUT_CAMERA_INFO" default="/xtion/rgb/camera_info"/>
  <arg name="INPUT_POINT_CLOUD" default="/xtion/depth/points" />
  <arg name="DEBUG_VIEW" default="false" />
  <node pkg="image_view2" type="image_view2" name="image_view2">
    <remap from="image" to="/xtion/depth/image_raw" />
  </node>
</launch>

を立ち上げると
[ERROR] [1441371960.898093994, 312.102200000]: Unable to convert 32FC1 image to bgr8
が出てしまいます.
解決策等はありますでしょうか.

@garaemon
Copy link
Member

garaemon commented Sep 4, 2015

pointsじゃなくてleft/image_rect_colorではない?

@otsubo
Copy link
Contributor Author

otsubo commented Sep 4, 2015

すみません,
depthではなくてrgbに変えたら動きました.

<launch>
  <arg name="INPUT_IMAGE" default="/xtion/rgb/image_raw"/>
  <arg name="INPUT_CAMERA_INFO" default="/xtion/rgb/camera_info"/>
  <arg name="INPUT_POINT_CLOUD" default="/xtion/depth/points" />
  <arg name="DEBUG_VIEW" default="false" />
  <node pkg="image_view2" type="image_view2" name="image_view2">
    <remap from="image" to="/xtion/rgb/image_raw" />
  </node>
</launch>

大変失礼いたしました.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants