-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
51 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
function deg2rad(deg) | ||
return deg * (math.pi / 180) | ||
end | ||
|
||
|
||
-- https://stackoverflow.com/a/23535333 Returns the absolute path with a | ||
-- trailing slash to the directory containing this script. | ||
function config_dir() | ||
local script_path = debug.getinfo(2, "S").source:sub(2) | ||
return script_path:match("(.*/)") | ||
end | ||
|
||
|
||
BEVParameters = { | ||
camera_calibration_config_path = config_dir() .. "camera_calibration_kinect.yaml"; | ||
|
||
input_image_topic = "/camera/rgb/image_raw"; | ||
input_image_width = 1280; | ||
input_image_height = 720; | ||
|
||
bev_image_topic = "/bev/single"; -- image_transport takes the base topic name | ||
bev_pixels_per_meter = 150.0; | ||
bev_horizon_distance = 5.0; | ||
|
||
bev_empty_region_rgb = {0, 0, 0}; | ||
|
||
stitched_bev_image_topic = "/bev/stitched"; | ||
stitched_bev_angle_topic = "/bev/stitched_angle"; | ||
stitched_bev_horizon_distance = 6.0; | ||
stitched_bev_ema_gamma = 0.1; | ||
stitched_bev_update_distance = 1.0; -- meters | ||
stitched_bev_update_angle = 10; -- degrees | ||
|
||
|
||
-- stitching is not required for the spot at this time | ||
-- pose_topic = "/husky/inekf_estimation/pose"; | ||
pose_topic = "/foo_9498125"; | ||
|
||
cv_num_threads = 2; | ||
|
||
T_ground_camera = { | ||
x = -0.06; | ||
y = 0.05; | ||
z = 0.53; | ||
pitch = deg2rad(-2.6); | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters