stereolabs / zed-ros-examples

Examples for the ZED SDK ROS wrapper
https://www.stereolabs.com/docs/ros/
MIT License
84 stars 51 forks source link

Change resolution for depth and color #22

Closed ruthvik92 closed 3 years ago

ruthvik92 commented 3 years ago

I am trying to change the resolution of the camera for color and depth.Is there any way to do this in the launch file? Any tutorials available for similar modifications? I am new (kinda) to ROS, any ready made launch files will be greatly appreciated.

Myzhar commented 3 years ago

Hi @ruthvik92 to change the grab resolution of the ZED camera you can change the parameter resolution in the file common.yaml: https://github.com/stereolabs/zed-ros-wrapper/blob/master/zed_wrapper/params/common.yaml#L26 If you do not want to change the YAML file you can set it in the launch file (zed.launch, zedm.launch or zed2.launch) but I do not recommend it because many modifications are required taking this way

ManChrys commented 3 years ago

@Myzhar except common.yaml can we change params on /zed-ros-examples/examples/zed_rtabmap_example/params/rtabmap.yaml?

One more question:

is there in difference if this yaml files say zed or zed2 ? because i have zed2 and i didnt change the model which is zed.

Myzhar commented 3 years ago

If you use RTABmap you must change the parameters in that yaml file according to your configuration, also the camera model

ManChrys commented 3 years ago

@Myzhar

thank you my friend