Skip to content

Calibration files & Minor code changes #11

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hmchung
Copy link

@hmchung hmchung commented Apr 8, 2018

  • Add calibration files for various resolution configurations

  • Modify code to use ini (instead of yaml) calibration file
    (.ini files are printed directly from the calibration scripts)

  • Note:
    ** stere matching seems to work well only at VGA resolution

* Modify code to use ini (instead of yaml) calibration file
(.ini files are printed directly from the calibration scripts)

* Note:
** stere matching seems to work well only at VGA resolution
Copy link
Owner

@willdzeng willdzeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you just a few comments.

@@ -168,11 +169,11 @@ class ZedCameraROS {
// get config from the left, right.yaml in config
camera_info_manager::CameraInfoManager info_manager(nh);
info_manager.setCameraName("zed/left");
info_manager.loadCameraInfo( "package://zed_cpu_ros/config/left.yaml");
info_manager.loadCameraInfo( "package://zed_cpu_ros/config/" + std::to_string(resolution_) + "/left.ini");
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you change these two configs into an input param as a string?
different cameras might will have different calibration parameters,
so really make this as a param make more sense.
These two calibration is just an example of what people should be expecting.
Eventually they will have to do a calibration.

<param name="frame_rate" value="30"/>
<param name="config_file_location" value="$(arg config_file_location)"/>
<param name="show_image" value="false"/>
<param name="left_frame_id" value="left_frame"/>
<param name="right_frame_id" value="right_frame"/>
<param name="load_zed_config" value="true"/>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please don't remove load_zed_config option.

@@ -1,20 +1,19 @@
<launch>
<arg name="config_file_location" default="$(find zed_cpu_ros)/config/SN1267.conf"/>
<arg name="camera_namespace" default="camera"/>
<arg name="device_id" default="0"/>
<arg name="device_id" default="1"/>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think changes on these two default param is necessary.

@@ -1,6 +1,8 @@
cmake_minimum_required(VERSION 2.8.3)
project(zed_cpu_ros)

set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does it have to use c++11?

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

Successfully merging this pull request may close these issues.

2 participants