Closed ftbmynameis closed 5 years ago
The most recent information I know about this is that in 2018, the JSON could not set FPS and resolution because the settings made by the file were overridden by the pipeline. The rest of the JSON settings loaded fine. Dorodnic the RealSense SDK Manager said they planned to adjust the pipeline but I do not know if it has been implemented.
https://github.com/IntelRealSense/librealsense/issues/1229#issuecomment-368329980
Thank you for the fast reply.
What I struggle to understand is that no matter what I do the log of the ros node tells me on startup that the selected resolution for all 4 camera streams is 640x480 which by what the official tuning whitepaper says is not a good resolution. It would recommend a resolution of 1280x720. Is the node output information misleading or am I missing something?
My apologies for the delay in a subsequent reply, as I wanted to research this subject carefully. I believe that the set resolution may be related to the launch file settings, and that you can 'dynamically reconfigure' the settings directly after the launch file instruction using rosrun in combination with rqt_reconfigure
https://github.com/intel-ros/realsense#set-camera-controls-using-dynamic-reconfigure-params
For example:
$ roslaunch realsense2_camera rs_rgbd.launch $ rosrun rqt_reconfigure rqt_reconfigure
When I launch the camera with the same launch file / arguments (or any others for that matter) as in the link you have posted and then start rqt_reconfigure it firstly shows me much less options (I only get rgb_camera and stereo module, everything else like color, depth, infra1/2,.. is missing for me) and if I click on "rgb_camera" rqt does crash immediately. For the stereo module option it is fine.
Regarding the crashing rqt_reconfigure, it is still unresolved. I just re-opened issue #607. Any additional information regarding this topic is more than welcome. Regarding the JSON preset. realsense2_camera use it to initialize the device parameters, like stereo_module->Exposure and such. You can check that specific option with rqt_reconfigure, even without checkoing the rgb_camera option. The stream fps, width and height relate to which stream is opened. Although realsense-viewer stores the information regarding the stream it was using as well, that information is not used by realsense2_camera.
Hi, I have saved the Preset "Default" settings in the librealsense-viewers tool to a json file and now want to load these settings, when I start a D415 camera. Most importantly in these settings the resolution is set to 1280x720 for the stereo module. However, when I load this settings file the starting log tells me that the resolution for all cameras (depth, infra1, infra2, color) is 640x480 (the setting used as the default value in the roslaunch file). I would have expected that the parameters in the json file would overwrite the default ros launch arguments, but they don't. I can explicitly pass arguments for each parameter during launch, but that is not what I want and also not suitable for a whole list of settings.. The launch command I am using is:
The output I get is:
The json file explicitly sets the desired stream resolution:
Now I am very confused if any parameters are actually taken into account or if maybe it is just an output issue?
Thank you.