Skip to content
New issue

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

Explicit type to set BalanceRatioSelector #86

Open
wants to merge 1 commit into
base: kinetic-devel
Choose a base branch
from

Conversation

3lonco
Copy link

@3lonco 3lonco commented Jan 22, 2022

I fixed the error to set assigned values of BalanceRatioSelector using this package.

The same error was reported before. #30
This issue was temporally solved by setting Continuous or Once, but BalanceRatioSelector can not set the assigned values.

◆Before
When this line calls "set property",

setProperty(node_map_, "BalanceRatioSelector", "Blue");

it is supposed to call the following code.

inline bool setProperty(Spinnaker::GenApi::INodeMap* node_map, const std::string& property_name,

However, the result called the following instead of the above.

inline bool setProperty(Spinnaker::GenApi::INodeMap* node_map, const std::string& property_name, const bool& value)

◆After
To call the setproperty having std::string in the third argument, I specified the type of "Blue" and "Red" as std::string.

◆Cause
The reason why the line called setpropety having bool is explained in the following page.
https://stackoverflow.com/questions/14770252/string-literal-matches-bool-overload-instead-of-stdstring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant