Skip to content

Commit

Permalink
fixed param passing for sdf11 & merge conflicts
Browse files Browse the repository at this point in the history
Signed-off-by: Jenn Nguyen <[email protected]>
  • Loading branch information
jennuine committed Jul 13, 2021
2 parents 4e9f2eb + 3c727c9 commit 935543c
Show file tree
Hide file tree
Showing 25 changed files with 3,036 additions and 8 deletions.
11 changes: 11 additions & 0 deletions sdf/1.6/particle_emitter.sdf
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,17 @@
</description>
</element>

<element name="particle_scatter_ratio" type="float" default="0.65" required="0">
<description>
This is used to determine the ratio of particles that will be detected
by sensors. Increasing the ratio means there is a higher chance of
particles reflecting and interfering with depth sensing, making the
emitter appear more dense. Decreasing the ratio decreases the chance
of particles reflecting and interfering with depth sensing, making it
appear less dense.
</description>
</element>

<include filename="pose.sdf" required="0"/>
<include filename="material.sdf" required="0"/>
</element>
16 changes: 16 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ set (sources
parser_urdf.cc
ParserConfig.cc
Param.cc
ParamPassing.cc
ParticleEmitter.cc
Pbr.cc
Physics.cc
Expand Down Expand Up @@ -197,6 +198,21 @@ if (BUILD_SDF_TEST)
target_link_libraries(UNIT_parser_urdf_TEST PRIVATE
${TinyXML2_LIBRARIES})
endif()

if (NOT WIN32)
set(SDF_BUILD_TESTS_EXTRA_EXE_SRCS ParamPassing.cc XmlUtils.cc parser.cc
parser_urdf.cc FrameSemantics.cc Converter.cc EmbeddedSdf.cc SDFExtension.cc Utils.cc)
sdf_build_tests(ParamPassing_TEST.cc)
if (NOT USE_INTERNAL_URDF)
target_compile_options(UNIT_ParamPassing_TEST PRIVATE ${URDF_CFLAGS})
if (${CMAKE_VERSION} VERSION_GREATER 3.13)
target_link_options(UNIT_ParamPassing_TEST PRIVATE ${URDF_LDFLAGS})
endif()
target_link_libraries(UNIT_ParamPassing_TEST PRIVATE ${URDF_LIBRARIES})
endif()
target_link_libraries(UNIT_ParamPassing_TEST PRIVATE
${TinyXML2_LIBRARIES})
endif()
endif()

sdf_add_library(${sdf_target} ${sources})
Expand Down
Loading

0 comments on commit 935543c

Please sign in to comment.