Skip to content

Bryson/pr vision ros params#77

Open
brysonmarazzi wants to merge 19 commits into
masterfrom
bryson/PR_vision_rosParams
Open

Bryson/pr vision ros params#77
brysonmarazzi wants to merge 19 commits into
masterfrom
bryson/PR_vision_rosParams

Conversation

@brysonmarazzi

Copy link
Copy Markdown

This is an updated version of the vision hsv_filter_node rosparams pull request.

I created python script that gets run upon exiting the hsv_filter_node. The python script "yamlEditor.py" (in the cfg directory) edits the messy yaml file exported by the rqt_reconfiguration gui and creates a new yaml file that the launch file can then load into the rosparam server. I also added an arguments tag in the lunauh file so now you can call the node with the "is_dyn_recon" variable set to true or default to false if it is not passed to the launch file.

This should increase the efficiency of dynamically editing the hsv_filter_node parameters.

@newtoncn newtoncn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, there was just one thing to address

Comment thread src/vision/src/HSVFilterNode.cpp Outdated
f = boost::bind(&HSVFilterNode::dynamicreconfigCallback, this, _1, _2);
server.setCallback(f);
} else {
// If the Dynamic Reconfigure is not desired, then set all the

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this resetting of the parameters? If not can we take it out

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not needed. I only added it there so that the values in the "params server" would be consistent with the actual values being used in the node. In terms of functionality, it is not necessary. Feel free to take out the code within that else block.

@newtoncn newtoncn requested a review from garethellis0 April 11, 2019 21:55

@garethellis0 garethellis0 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty sane to me overall

Comment thread src/vision/cfg/launch_params_out.yaml
Comment thread src/vision/cfg/launch_params_out.yaml
Comment thread src/vision/cfg/rqt_params_out.yaml
Comment thread src/vision/include/HSVFilterNode.h Outdated
Comment thread src/vision/src/HSVFilterNode.cpp Outdated
Comment thread src/vision/src/hsv_filter_node.cpp Outdated
// Once the node stops, return 0
// Once the node stops, return 0
return 0;
} No newline at end of file

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit github complaining about end-of-file

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@garethellis0 garethellis0 May 31, 2019

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github is still complaining?

@newtoncn

Copy link
Copy Markdown
Contributor

@brysonmarazzi @danaharlos Also code needs to be merged into master as master has been updated.

newtoncn
newtoncn previously approved these changes May 25, 2019
@newtoncn newtoncn requested a review from garethellis0 May 25, 2019 18:17
garethellis0
garethellis0 previously approved these changes May 31, 2019

@garethellis0 garethellis0 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies for the late review. One end-of-file issue left, but other then that this LGTM 👍 🎉

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.

4 participants