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

[Humble] colors/image_raw has a different size than depth/image_raw #111

Open
ambitious-octopus opened this issue Jun 28, 2024 · 1 comment

Comments

@ambitious-octopus
Copy link

ambitious-octopus commented Jun 28, 2024

Depth Image Raw

ros2 topic echo /camera/depth/image_raw

Leads to: height: 480 and width: 640

header:
  stamp:
    sec: 1707
    nanosec: 430000000
  frame_id: camera_depth_optical_frame
height: 480
width: 640
encoding: 32FC1
is_bigendian: 0
step: 2560
data:
...

Color Image Raw

ros2 topic echo /camera/color/image_raw

Leads to, height: 240, width: 320

header:
  stamp:
    sec: 1803
    nanosec: 29000000
  frame_id: camera_color_optical_frame
height: 240
width: 320
encoding: rgb8
is_bigendian: 0
step: 960
data:
...

Is this behavior intentional? If so, how do I change the resolution. I've already tried looking through the parameters. Furthermore, I also searched in my colcon workspace and I can't find explicit references to this resolution.

EDIT: I'm using rosbot Gazebo:

ros2 pkg xml rosbot_gazebo

Outputs:

<package format="3">
  <name>rosbot_gazebo</name>
  <version>0.13.2</version>
  <description>Gazebo Ignition simulation for ROSbot 2, 2R, PRO</description>
@rafal-gorecki
Copy link
Contributor

rafal-gorecki commented Jul 15, 2024

Sorry, I missed your question.

I see that the change has been corrected, you probably need to update the ros_components_description repoor change the parameters in this file yourself.

Let me know if you have any further questions

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