Using ROS with pycrazyswarm #586
Replies: 3 comments
-
We've got the same issues here, I'd love to know the answers, thanks! |
Beta Was this translation helpful? Give feedback.
-
I don't fully understand the problems. There seems to be one with "ROS params", and another one with "ROS path issues". Could you provide a small example for what you did, what behavior you got, and what behavior you want instead? |
Beta Was this translation helpful? Give feedback.
-
if I try to use a launch file like this:
I'd like to read the private cfid param. However Trying to use
And then you have to evaluate for me the following line that I found in the docs doesn't work: #export PYTHONPATH=$PYTHONPATH:/path/to/crazyswarm/ros_ws/src/crazyswarm/scripts I solved it by installing the I Hope that this helps you understand my problems. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I am an engineering student that is currently working with pycrazyswarm and I have a couple of questions about how to use crazyswarm with ros:
How do you access private ros params in a python script when the node has been renamed from a launch file?
You cannot start a node since that clashes with the
pycrazyswarm.Crazyswarm()
call.I have been solving this problem on my side by manually parsing the
sys.argv
to retrieve the new node name.How do you then pass the
--sim
arg to the crazyswarm node ?I had to manually inject it in the
sys.argv
params that I pass topycrazyswarm.Crazyswarm()
.How do you solve the ros python path issues?
I have solved this issue on my side by
pip
installing the local pycrazyswarm folder.This improves quality of life for development since symbolic links are no longer required.
This doesn't break back compatibility.
Would a helper lib/functions to assist with parsing the args and retrieving the params be an interesting contribution to this repo?
Maybe the pycrazyswarm lib should be pip installed by default? ( maybe make it available on pypi?)
Please met me know if I have been missing easy answers to my questions and if my ideas make sens.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions