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

Improve setParam/getParam behavior #414

Open
whoenig opened this issue Jul 8, 2021 · 0 comments
Open

Improve setParam/getParam behavior #414

whoenig opened this issue Jul 8, 2021 · 0 comments

Comments

@whoenig
Copy link
Contributor

whoenig commented Jul 8, 2021

Currently, the following does not work as expected:

def test_set_cf_param_broadcast(self):
         swarm.allcfs.setParam('stabilizer/controller', 2)
         for cf in swarm.allcfs.crazyflies:
             assert cf.getParam('stabilizer/controller') == 2
         swarm.allcfs.setParam('stabilizer/controller', 1)

There are two issues that should be fixed:

  • allcfs.setParams should update the cache of all Crazyflies that use the same channel. It might be best to do this directly in the C++ layer, and not the Python layer.
  • Ideally, getParam() would have an option to pull the data from the CF, rather than just looking in the ROS parameter server for some (potentially stale) value.
jpreiss pushed a commit to jpreiss/crazyswarm that referenced this issue Mar 16, 2024
server cpp: add new communication warnings
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

No branches or pull requests

1 participant