Closed morrisirrom closed 3 years ago
Hi @morrisirrom I really appreciate you providing all of the details to your issue.
You are getting that error because you are only passing a single motor value 1 at the command line. The arguments defined here specify the motor value must be provided for each motor/actuator of the aircraft. Since NF1 is a quadcopter you should run,
python3 tests/test_step_sim.py --verbose examples/gymfc_nf/twins/nf1/model.sdf 1 1 1 1
Which would be 100% throttle to each motor. The protobuf error you are seeing is basically saying 'hey I expect to see more values'. It would be great to have better error handling but its tricky since test_step_sim would need to know how many motors the aircraft has. You could do this by parsing the model.sdf and look for the number of the motor plugins and throw an error if the input doesn't match.
That should fix the issue you are seeing but let me know if that's not the case.
That makes a bunch of sense--Thank you so much for your response!
On Tue, Mar 9, 2021 at 10:26 AM Wil Koch notifications@github.com wrote:
Hi @morrisirrom https://github.com/morrisirrom I really appreciate you providing all of the details to your issue.
You are getting that error because you are only passing a single motor value 1 at the command line. The arguments defined here https://github.com/wil3/gymfc/blob/master/tests/test_step_sim.py#L43 specify the motor value must be provided for each motor/actuator of the aircraft. Since NF1 is a quadcopter you should run,
python3 tests/test_step_sim.py --verbose examples/gymfc_nf/twins/nf1/model.sdf 1 1 1 1
Which would be 100% throttle to each motor. The protobuf error you are seeing is basically saying 'hey I expect to see more values'. It would be great to have better error handling but its tricky since test_step_sim would need to know how many motors the aircraft has. You could do this by parsing the model.sdf and look for the number of the motor plugins and throw an error if the input doesn't match.
That should fix the issue you are seeing but let me know if that's not the case.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/wil3/gymfc/issues/96#issuecomment-794270618, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA5WU7HAEDJSMEAHCZ77C4TTCZK4TANCNFSM4Y24ZHCA .
Prerequisites
Description
I installed gymfc on a fresh 18.04 install, and followed the installation instructions. However, when I try to run
python3 tests/test_step_sim.py --verbose examples/gymfc_nf/twins/nf1/model.sdf 1
I get a number of debug statements such as (perhaps these are ignorable)
and then eventually I get this exception:
Steps to Reproduce
Install a fresh copy of gymfc on an 18.04 machine
Execute command
python3 tests/test_step_sim.py --verbose examples/gymfc_nf/twins/nf1/model.sdf 1
See error
Expected behavior Mostly I would expect no exceptions--perhaps this is a benign problem? I actually haven't successfully run this before, but I was expecting to see some value being applied to the motors, and some general movement of the drone.