More issues with hello_world.py #610
Unanswered
GideonLombardo
asked this question in
Q&A
Replies: 1 comment 12 replies
-
Hi! I suggested to #603 to share the changed hover_swarm.launch file, so perhaps you could do the same as well? There is also this mocap_helper.launch file that only outputs the mocap values, to make sure that you get the right values for that too. |
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
This question is related to discussion #603 . When I run hello_world.py, the Crazyflie will either randomly fly away from its starting point or flip over. I have read the discussion in #603. I have updated by Cazyradio firmware according the instructions on the configuration page. I get a success message when I run the scan:
Found Crazyradio with version 99.55.
I have also made sure to update the Crazyflie firmware.
For reference, I use Vicon Tracker as my motion capture system with unique marker configurations. Currently, I am testing my setup with only one Crazyflie.
I start the crazyswarm server, and I am able to see the CF pose in RVIZ. I get no error messages, and everything appears to work cleanly. I run python3 hello_world.py, and the CF flips over or flies far away. I get a message in the terminal:
YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
cfg = yaml.load(crazyflies_yaml)
Warning: No joystick found!
Traceback (most recent call last):
File "/opt/ros/noetic/lib/python3/dist-packages/rospy/impl/tcpros_base.py", line 567, in connect
self.socket.connect((dest_addr, dest_port))
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/ros/noetic/lib/python3/dist-packages/rospy/impl/tcpros_service.py", line 509, in call
transport.connect(dest_addr, dest_port, service_uri)
File "/opt/ros/noetic/lib/python3/dist-packages/rospy/impl/tcpros_base.py", line 596, in connect
raise TransportInitError(str(e)) #re-raise i/o error
rospy.exceptions.TransportInitError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "hello_world.py", line 22, in
main()
File "hello_world.py", line 17, in main
cf.land(targetHeight=0.04, duration=2.5)
File "/home/workstation3/crazyswarm/ros_ws/src/crazyswarm/scripts/pycrazyswarm/crazyflie.py", line 209, in land
self.landService(groupMask, targetHeight, rospy.Duration.from_sec(duration))
File "/opt/ros/noetic/lib/python3/dist-packages/rospy/impl/tcpros_service.py", line 442, in call
return self.call(*args, **kwds)
File "/opt/ros/noetic/lib/python3/dist-packages/rospy/impl/tcpros_service.py", line 512, in call
raise ServiceException("unable to connect to service: %s"%e)
rospy.service.ServiceException: unable to connect to service: [Errno 111] Connection refused
I do not know what is going wrong. If there is another file that needs to be adjusted, or if there is more firmware to be updated, please let me know.
Thank you,
Gideon
Beta Was this translation helpful? Give feedback.
All reactions