sthoduka / kortex_vision

non-ROS library for KINOVA® KORTEX™ arms vision module
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

[Main] Ideal use case. #5

Open lscarton opened 6 months ago

lscarton commented 6 months ago
KinovaVision kv;
kv.start();
cv::Mat img, depth_img;
kv.get_color_image(img);
kv.get_depth_image(depth_img);
kv.get_color_and_depth_image(img, depth_img);

@sthoduka

Maybe the json parser should be outside KinovaVision so they are loosely cuppled, and play together in the main

sthoduka commented 6 months ago

I think the main thing is to get it working, and improvements can be made later

lscarton commented 6 months ago

@sthoduka I am thinking of two setting config methods:

and 3 getting methods:

please try the main in the working branch and let me know if it is similar to what you had in mind.

lscarton commented 6 months ago

I do not see any use in the code of the information about the camera calibration beside width,height and camera_type. It also seems to me that they operate either color or depth but not both simultaneuosly. is it there a possible limitation in the hw/sw?

sthoduka commented 6 months ago

I am thinking of two setting config methods:

What would these methods do? I'll add some more comments in the PR

I do not see any use in the code of the information about the camera calibration beside width,height and camera_type.

Camera calibration will be useful later for pointcloud generation. And in general, people might need it for other tasks.

It also seems to me that they operate either color or depth but not both simultaneuosly. is it there a possible limitation in the hw/sw?

I don't think it's a hardware limitation; maybe separate ROS nodes were used for RGB and depth to simplify usage (e.g. launch only the RGB node, and use a separate gstreamer pipeline for each).

If we're getting both RGB and depth streams simultaneously, the gstreamer pipeline should have two sources and two sinks (from what I understand based on this)