Skip to content

Commit

Permalink
Fix test failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamenot committed Jan 30, 2024
1 parent b731d8e commit 14452d0
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions smarts/core/tests/test_sensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@
from helpers.scenario import temp_scenario

from smarts.core import glsl
from smarts.core.agent_interface import CustomRenderCameraDependency
from smarts.core.agent_interface import (
CustomRenderCameraDependency,
CustomRenderVariableDependency,
)
from smarts.core.coordinates import Heading, Pose, RefLinePoint
from smarts.core.observations import CustomRenderData
from smarts.core.plan import Plan
Expand Down Expand Up @@ -275,10 +278,16 @@ def test_custom_render_sensor():
resolution=1,
fragment_shader_path=frag_shader,
renderer=renderer,
render_dependencies=(),
render_dependencies=(
CustomRenderVariableDependency(
value=1.0,
variable_name="scale",
),
),
ogm_sensor=None,
top_down_rgb_sensor=None,
dagm_sensor=None,
drivable_area_grid_map_sensor=None,
occlusion_map_sensor=None,
)
sensor = sensor_gen(name="simplex")
sensor2 = sensor_gen(
Expand All @@ -287,6 +296,10 @@ def test_custom_render_sensor():
CustomRenderCameraDependency(
camera_dependency_name=sensor.name, variable_name="iChannel0"
),
CustomRenderVariableDependency(
value=10.0,
variable_name="scale",
),
),
)

Expand Down

0 comments on commit 14452d0

Please sign in to comment.