Skip to content

Commit

Permalink
added robofly + tests
Browse files Browse the repository at this point in the history
  • Loading branch information
klaxalk committed Oct 31, 2024
1 parent 740dc45 commit ae42120
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,16 +321,16 @@
parent_frame_name = spawner_args['name'] + '/fcu',
sensor_base_frame_name = spawner_args['name'] + '/camera_front',
frame_rate = rate,
horizontal_fov = 2.1,
horizontal_fov = 0.79622,
image_width = 728,
image_height = 544,
min_distance = 0.02,
max_distance = 80,
noise_mean = 0.0,
noise_stddev = spawner_args[spawner_keyword]['noise'],
x = 0.0821,
x = 0.1,
y = 0.0,
z = -0.004,
z = 0.02143,
roll = 0,
pitch = 0,
yaw = 0)
Expand All @@ -346,6 +346,49 @@

{# <!--}--> #}

{# camera_down {--> #}

{%- macro camera_down_macro(spawner_args) -%}

{%- set spawner_keyword = 'enable-camera-down' -%}
{%- set spawner_description = 'Enable down-facing camera' -%}
{%- set spawner_default_args = {'rate': 20, 'noise': 0.007} -%}

{%- if spawner_keyword in spawner_args.keys() -%}
{{ generic.handle_spawner_args(spawner_keyword, spawner_default_args, spawner_args) }}

{{ generic.camera_macro_meshless(
camera_name = 'camera_down',
parent_link = root,
camera_frame_name = spawner_args['name'] + '/camera_down_optical',
parent_frame_name = spawner_args['name'] + '/fcu',
sensor_base_frame_name = spawner_args['name'] + '/camera_down',
frame_rate = rate,
horizontal_fov = 1.5476,
image_width = 1280,
image_height = 800,
min_distance = 0.02,
max_distance = 80,
noise_mean = 0.0,
noise_stddev = spawner_args[spawner_keyword]['noise'],
x = 0.0821,
y = 0.0,
z = -0.01,
roll = 3.14,
pitch = 1.57,
yaw = 0.0)
}}

{%- endif -%}

{%- endmacro -%}

{{ camera_down_macro(
spawner_args = spawner_args)
}}

{# <!--}--> #}

</model>

</sdf>
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ set(MODELS
t650
m690
naki
robofly
)

catkin_add_executable_with_gtest(test_${TEST_NAME}
Expand Down

0 comments on commit ae42120

Please sign in to comment.