Closed PHRABAL closed 5 years ago
Could you please try changing this line to #!/usr/bin/env python2
? ROS TF does not work with python 3 and will throw a similar error.
This eliminated the error. However, I launch the reporter and then try in my python code to publish commands as well as retrieve images from the sim and it doesn't work. For example, when trying to publish a command, I can't get a connection. When I try to grab an image, there are none, although when I rostopic echo
data is there. Does the reporter node somehow change what my working Python code has to do to send and receive? Or perhaps something with sim_time? Anything at all that would be different with reporter than with core in terms of connections, defaults, etc.?
Could you please post the specific error that you're getting? reporter.py
only subscribes to topics. It should not effect any of your code or ROS topics.
It's possible that you're in a python3 virtual environment that is not setup for ROS. Could you also please also post your RQT graph? It's possible that your nodes/topics are not wired up correctly.
I want to dig into the reporter.py
code and retry some things and see if I can find the source myself. If I get stuck, I'll open a new issue with the info you requested. Since you solved the original error, you could close this issue if you want. Thank you guys for replying so fast to our issues. Deadline is tight for this competition. It's very much appreciated!
No problem, best of luck!
Hi,
I'm running FG successfully for a couple weeks. Use
core.launch
to get it going no problems. However, I wanted to run one of the practice challenges today to test my trained drone and when I doroslaunch flightgoggles reporter.launch level:=easy
I see the core launches successfully, states the initial pose, but then: