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

1299 alexj boat drone comms #1304

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open

Conversation

alexoj46
Copy link
Contributor

Description

This PR creates a ROSSerialDevice called DroneCommDevice which allows Navigator to communicate with the drone. Also, it adds a test-suite for simulated packets.

Screenshot or Video

Screenshot 2024-10-30 at 7 25 36 PM Screenshot 2024-10-30 at 11 57 08 PM

Related Issues

- #1299

Testing

rosrun navigator_drone_comm test_simulated_drone.py

  • This starts the test program.
  • You should see a received GPSDronePacket and TargetPacket printed to the console immediately.

While "Testing receiving heartbeats for 5 secs..."

  • You should see no outputted errors for missing heartbeat.

While the long test loop runs

  • You should see error for no received heartbeat every second.
  • Use ctrl Z to end execution.

To test services that send messages:

  • Comment out lines in driver.py with “send_packet()”.
  • Uncomment the print statements next to those lines.
  • Now instead of freezing after sending packets, you will see print statements when messages would be sent to the drone.

Now, while the long test runs:

  • Call the services below in a separate terminal to check that a message would be sent.
  • Use ctrl c to end execution early.

rosservice call /test_simulated_drone/start “sample_mission”
rosservice call /test_simulated_drone/estop
rosservice call /test_simulated_drone/stop

About This PR

  • I have updated documentation related to this change so that future members are aware of the changes I've made.

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

Successfully merging this pull request may close these issues.

3 participants