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

Not all published params can be set with a call to set_parameter #25

Open
bk-mtg opened this issue Jul 25, 2020 · 4 comments
Open

Not all published params can be set with a call to set_parameter #25

bk-mtg opened this issue Jul 25, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@bk-mtg
Copy link
Contributor

bk-mtg commented Jul 25, 2020

All parameters are treated the same here:
https://github.com/PepperlFuchs/ROS_driver/blob/477d72066f8cfc6ecb960fc388c2a8f0e9f6a3ec/pf_driver/include/pf_driver/pf/r2000/pfsdp_2000.hpp#L85
But several of them (packet_type, start_angle, max_num_points_scan, skip_scans) can only be set during the call to request_handle_tcp or request_handle_udp, rather than with a call to set_parameter.

@hsd-dev
Copy link
Contributor

hsd-dev commented Jul 27, 2020

You are right. Thanks for pointing out.

@hsd-dev
Copy link
Contributor

hsd-dev commented Aug 6, 2020

#29 should solve it.

@bk-mtg
Copy link
Contributor Author

bk-mtg commented Aug 17, 2020

I guess it's kindof a matter of what "solving" this means. I think to really do it properly, you have to stop the existing data stream from the R2000/R2300 and start a new one, but that's quite a bit of work and may raise other issues. May be that it's not worth that much effort to allow dynamic reconfigure, since most of the properties that can only be set that way probably aren't going to be changed while running. (BTW, left comments on the other PR using my other github account; sorry about that.)

@hsd-dev
Copy link
Contributor

hsd-dev commented Aug 25, 2020

This is the statement in the R2000 protocol document:

It is recommended (but not required) to stop sensor data output while using set_scanoutput_config. In case scan data out-
put is active, the point in time when modified configuration settings are applied to the running data stream is non-deterministic.
After the new settings are applied, scan data output is suspended until the start of an new scan (skipping scan data pack-
ets in-between). If the client application depends on a deterministic switching behavior, it should stop scan data transmis-
sion first using stop_scanoutput, change settings using set_scanoutput_config and finally restart the data stream with
start_scanoutput.

I will take of this in the later PRs because as you said, it might raise other issues. Leaving the issue open for now.

@hsd-dev hsd-dev added the enhancement New feature or request label Sep 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants