Parse ode_quiet physics parameter from SDFormat (#3194)
The ODE world-step solver has a tendency to spam the console
with LCP Internal Error messages. We added the `ode_quiet`
parameter to the `ODEPhysics::SetParam` C++ API to disable
these messages, but it would be more convenient to set
`ode_quiet` in an SDFormat world file. The PresetManager
does pass `ode_quiet` to the C++ API, but there is a casting
error. Since the ode_quiet element is not part of the SDFormat
spec, it is encoded as a string in the PresetManager.
Parsing it as a string using an sdf::Param object fixes it.
A test is added using world_step.world to confirm the fix.
Signed-off-by: Steve Peters <email address hidden>
Support plotting for entities with / in the name (#3187)
I noticed while testing the rexrov models from the rexrov
model in Field-Robotics-Lab/dave that the plotting window
does not work properly when elements of a model include
a forward-slash `/` in the entity name. To fix the problem,
the `/` characters are encoded as %2f in physics::Base::URI().
Corresponding decoding is added to the gui/plot/Palette class.
* Escape '%' as "%25" as well
This would prevent a string containing "%2f" from
incorrectly being unescaped to "/".
Signed-off-by: Steve Peters <email address hidden>
ea95601...
by
Silvio Traversaro <email address hidden>
Replace deprecated tbb task for tbb >= 2021 (#3174)
As tbb::task has been removed in oneTBB 2021.01,
we need to replace its use with oneapi::tbb::task_group.
Define a wrapper so that tbb::task_group is used for
newer versions of oneTBB.
Fixes #2867.
* Fix typo
* Remove TopicManagerProcessTask as it is unused
* Use oneapi::tbb::task_group instead of tbb::task if available
* Assign my copyright to OSRF
* Add myself to AUTHORS
* Default to using tbb::task for older versions of TBB, to maintain ABI
* Replace use of tbb/version.h with tbb/tbb.h
As tbb/version.h is seemingly not present before v2021.01, it cannot be
used to get the definition for TBB_VERSION_MAJOR, so let's use the main
tbb.h header which is present on all versions.
Signed-off-by: Alex Dewar <email address hidden>
* Make sure that there are no ABI changes for tbb < 2021
* Fix linking problems
* Undef more emit symboles for tbb includes
* Remove trailing whitespace
Signed-off-by: Steve Peters <email address hidden>
* Cleanup TAskGroup as it is used only if tbb>=2021
* If tbb >= 2021 add TBB::tbb to GAZEBO_LIBRARIES for downstream users
* Fix CMake configuration failure with tbb 2020
* Fix GAZEBO_TRANSPORT_TASKGROUP_HH_ header guard
* For tbb >= 2021 make PublishTask::operator() const
* Unpin tbb-devel
Co-authored-by: Alex Dewar <email address hidden>
Co-authored-by: Alex Dewar <email address hidden>
Co-authored-by: Steve Peters <email address hidden>
34ebf4e...
by
Silvio Traversaro <email address hidden>
Add CI for compiling gazebo with conda-forge dependencies (#3186)