We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The <enable> tag is not enabled. I tried to set it to false but it always enabled. https://github.com/ignitionrobotics/ign-gazebo/blob/deaa059e7a82e177279343de125c39b44f09237a/src/systems/touch_plugin/TouchPlugin.cc#L187-L192
<enable>
false
This condition is always achieved. I think the problem is with Get<bool>
Get<bool>
The text was updated successfully, but these errors were encountered:
Oof, yeah that should be _sdf->Get<bool>("enabled", false).first. Mind creating a PR?
_sdf->Get<bool>("enabled", false).first
Sorry, something went wrong.
I tried to edit the workspace/src/sdformat/include/sdf/Element.hh but it didn't work. Is this the write file?
workspace/src/sdformat/include/sdf/Element.hh
I meant line 188 https://github.com/ignitionrobotics/ign-gazebo/blob/deaa059e7a82e177279343de125c39b44f09237a/src/systems/touch_plugin/TouchPlugin.cc#L188. second should be first.
second
first
Get returns a std::pair where the first value is the actual value of the sdf parameter and the second value indicates whether the parameter was set.
Get
std::pair
No branches or pull requests
The
<enable>
tag is not enabled. I tried to set it tofalse
but it always enabled.https://github.com/ignitionrobotics/ign-gazebo/blob/deaa059e7a82e177279343de125c39b44f09237a/src/systems/touch_plugin/TouchPlugin.cc#L187-L192
This condition is always achieved.
I think the problem is with
Get<bool>
The text was updated successfully, but these errors were encountered: