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

TCM client and interface for autonomy #8

Open
niemiaszek opened this issue Aug 4, 2022 · 3 comments
Open

TCM client and interface for autonomy #8

niemiaszek opened this issue Aug 4, 2022 · 3 comments

Comments

@niemiaszek
Copy link
Contributor

So far, class Okon uses methods based on PacketTypes assigned to simulation. We want to abstract Okon, OkonClient and PacketTypes. Each class should have base class, as Okon base class will be used as interface with autonomy.

Okon (interface for autonomy):
    OkonSim
        PacketTypeSim
    OkonTCM
        PacketTypeTCM
@mpfmorawski
Copy link
Collaborator

Schedule:

  1. Prepare Okon base class (Friday, August 5th)
  2. Meeting with @kjonak to define if our assumptions about Okon Base class are possible to implement with TCM (Friday/Saturday/Sunday, August 5th-7th)
  3. Reinventing if something not possible OR implementing OkonTCM

@mpfmorawski
Copy link
Collaborator

mpfmorawski commented Aug 8, 2022

OkonTCM

Based on autonomy/okon_sim_client.py:

  • parser is equal to Simulation._handle_packet method - TBI
  • From Simulation methods connect, _receive_all, _send, disconnect will be handled by Maks
  • Simulation.send - TBI
  • Simulation._sync_thread - TBI
  • Simulation._comm_thread - TBI
  • Simulation.on_event, Simulation._emit_event will be handled by Maks

Schedule:

  1. First try of implementation and draft pull request (Tuesday, August 9th)
  2. TBC

@mpfmorawski
Copy link
Collaborator

Progress:
The environment for testing commiunication via UART in Python developed by @RoboAsystent has been prepared. It can be reproduced as follows:

Requirements:

  • computer with Linux
  • Arduino

Instruction:

  1. Install Arduino IDE (Linux Installation) - Important! Remember to follow ALL sections of instruction - including especially the last section "Please Read" after which the computer should be restarted. Following these instructions will prevent you from getting Error opening serial port error.
  2. Do a loopback test (loopback using hardware), close Serial Monitor and don't disconnect the Arduino.
  3. Run Serial/jetson_serial.py or Serial/jetson_serial_light.py (code available on branch okon-tcm-client)

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

No branches or pull requests

2 participants