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

Removing ros files, Adding ArgParser, Cast Json to std variables. #6

Open lscarton opened 3 months ago

lscarton commented 3 months ago

This merge request remove many ROS dependencies. Introduces vision_main.cpp

vision_main.cpp uses cv::CommandLineParser as parser, providing also help. vision_main.cpp has a class CameraCalibration that obtain the Json camera_calibration and has the following public variables:

  int width;
  std::string type;
  std::vector<float> camera_matrix;
  std::vector<float> distortion;
  std::vector<float> rectification;
  std::vector<float> projection;

the argument in the CommandLineParser can be used to switch on and off the rgb and the depth cameras, and select the resolution.