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

Feature: Backup and Restore Fleet Adapters #161

Open
wants to merge 89 commits into
base: main
Choose a base branch
from

Commits on Dec 6, 2021

  1. Added skeleton for broadcast client

    Signed-off-by: Yadunund <[email protected]>
    Yadunund committed Dec 6, 2021
    Configuration menu
    Copy the full SHA
    5944a22 View commit details
    Browse the repository at this point in the history
  2. wip

    Signed-off-by: Yadunund <[email protected]>
    Yadunund committed Dec 6, 2021
    Configuration menu
    Copy the full SHA
    ae176b5 View commit details
    Browse the repository at this point in the history

Commits on Dec 7, 2021

  1. Implemented make

    Signed-off-by: Yadunund <[email protected]>
    Yadunund committed Dec 7, 2021
    Configuration menu
    Copy the full SHA
    6231519 View commit details
    Browse the repository at this point in the history
  2. Initialize broadcast client

    Signed-off-by: Yadunund <[email protected]>
    Yadunund committed Dec 7, 2021
    Configuration menu
    Copy the full SHA
    43db070 View commit details
    Browse the repository at this point in the history
  3. Debugging

    Signed-off-by: Yadunund <[email protected]>
    Yadunund committed Dec 7, 2021
    Configuration menu
    Copy the full SHA
    fb32c33 View commit details
    Browse the repository at this point in the history

Commits on Dec 8, 2021

  1. Cleanup

    Signed-off-by: Yadunund <[email protected]>
    Yadunund committed Dec 8, 2021
    Configuration menu
    Copy the full SHA
    0591869 View commit details
    Browse the repository at this point in the history
  2. Publish fleet_state message

    Signed-off-by: Yadunund <[email protected]>
    Yadunund committed Dec 8, 2021
    Configuration menu
    Copy the full SHA
    bfd85a0 View commit details
    Browse the repository at this point in the history
  3. Store broadcast_client within TaskManager

    Signed-off-by: Yadunund <[email protected]>
    Yadunund committed Dec 8, 2021
    Configuration menu
    Copy the full SHA
    e4bf907 View commit details
    Browse the repository at this point in the history
  4. Changes to support rmf_task/redesign_v2

    Signed-off-by: Yadunund <[email protected]>
    Yadunund committed Dec 8, 2021
    Configuration menu
    Copy the full SHA
    c8e0517 View commit details
    Browse the repository at this point in the history

Commits on Dec 9, 2021

  1. Schema validator loader uses internal dictionary

    Signed-off-by: Yadunund <[email protected]>
    Yadunund committed Dec 9, 2021
    Configuration menu
    Copy the full SHA
    c89e534 View commit details
    Browse the repository at this point in the history
  2. Fixed fleet_state message

    Signed-off-by: Yadunund <[email protected]>
    Yadunund committed Dec 9, 2021
    Configuration menu
    Copy the full SHA
    aaf008e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a8f6592 View commit details
    Browse the repository at this point in the history
  4. Update python binding

    Signed-off-by: Yadunund <[email protected]>
    Yadunund committed Dec 9, 2021
    Configuration menu
    Copy the full SHA
    46fe559 View commit details
    Browse the repository at this point in the history
  5. Publish _update jsons

    Signed-off-by: Yadunund <[email protected]>
    Yadunund committed Dec 9, 2021
    Configuration menu
    Copy the full SHA
    129f66b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a274b49 View commit details
    Browse the repository at this point in the history
  7. Uncrustify

    Signed-off-by: Yadunund <[email protected]>
    Yadunund committed Dec 9, 2021
    Configuration menu
    Copy the full SHA
    5becba1 View commit details
    Browse the repository at this point in the history

Commits on Dec 10, 2021

  1. Creating a shim to migrate the legacy task phases to the new system

    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Dec 10, 2021
    Configuration menu
    Copy the full SHA
    03de72a View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2021

  1. Implementing the GoToPlace event

    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Dec 14, 2021
    Configuration menu
    Copy the full SHA
    d62e94c View commit details
    Browse the repository at this point in the history

Commits on Dec 15, 2021

  1. Finish implementation of GoToPlace and EmergencyPullover

    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Dec 15, 2021
    Configuration menu
    Copy the full SHA
    1e0bfb9 View commit details
    Browse the repository at this point in the history

Commits on Dec 16, 2021

  1. Implement delivery

    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Dec 16, 2021
    Configuration menu
    Copy the full SHA
    31c095a View commit details
    Browse the repository at this point in the history

Commits on Dec 17, 2021

  1. Finished refactoring to new task system -- need to finish comms imple…

    …mentation
    
    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Dec 17, 2021
    Configuration menu
    Copy the full SHA
    a072869 View commit details
    Browse the repository at this point in the history

Commits on Dec 20, 2021

  1. Publish task states

    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Dec 20, 2021
    Configuration menu
    Copy the full SHA
    7664c76 View commit details
    Browse the repository at this point in the history

Commits on Dec 21, 2021

  1. Continue implementing json updates, fix a subtle bug

    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Dec 21, 2021
    Configuration menu
    Copy the full SHA
    0cd4cc0 View commit details
    Browse the repository at this point in the history

Commits on Dec 22, 2021

  1. Support battery charging tasks

    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Dec 22, 2021
    Configuration menu
    Copy the full SHA
    2ca24c3 View commit details
    Browse the repository at this point in the history
  2. Fix battery charging and deliveries

    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Dec 22, 2021
    Configuration menu
    Copy the full SHA
    eea945c View commit details
    Browse the repository at this point in the history
  3. Use Placeholder event instead of WaitFor event

    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Dec 22, 2021
    Configuration menu
    Copy the full SHA
    2855b26 View commit details
    Browse the repository at this point in the history

Commits on Dec 24, 2021

  1. Implemented json message handling -- need to finish task change imple…

    …mentation
    
    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Dec 24, 2021
    Configuration menu
    Copy the full SHA
    96cc725 View commit details
    Browse the repository at this point in the history
  2. Implemented interrupt and resume -- just a few more commands missing

    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Dec 24, 2021
    Configuration menu
    Copy the full SHA
    1d37028 View commit details
    Browse the repository at this point in the history
  3. Finished implementation of all task manipulation requests -- needs te…

    …sting
    
    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Dec 24, 2021
    Configuration menu
    Copy the full SHA
    15f548b View commit details
    Browse the repository at this point in the history

Commits on Dec 29, 2021

  1. Beginning API for json deserialization

    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Dec 29, 2021
    Configuration menu
    Copy the full SHA
    8c51312 View commit details
    Browse the repository at this point in the history
  2. Remove redundant comparison function

    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Dec 29, 2021
    Configuration menu
    Copy the full SHA
    c340558 View commit details
    Browse the repository at this point in the history
  3. Merged in the latest changes

    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Dec 29, 2021
    Configuration menu
    Copy the full SHA
    07b8e96 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f854943 View commit details
    Browse the repository at this point in the history

Commits on Dec 30, 2021

  1. Adding the ability to deserialize json task requests

    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Dec 30, 2021
    Configuration menu
    Copy the full SHA
    19b93e1 View commit details
    Browse the repository at this point in the history

Commits on Dec 31, 2021

  1. Implement deserialization of JSON for task descriptions

    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Dec 31, 2021
    Configuration menu
    Copy the full SHA
    5ff66e3 View commit details
    Browse the repository at this point in the history
  2. Finish implementations for delivery and loop

    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Dec 31, 2021
    Configuration menu
    Copy the full SHA
    42a826e View commit details
    Browse the repository at this point in the history
  3. Fix validator instantiation

    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Dec 31, 2021
    Configuration menu
    Copy the full SHA
    e6e75b4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e379d8d View commit details
    Browse the repository at this point in the history

Commits on Jan 3, 2022

  1. Finish implementation of task description deserialization

    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Jan 3, 2022
    Configuration menu
    Copy the full SHA
    18078c4 View commit details
    Browse the repository at this point in the history
  2. Add a task description schema for Clean

    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Jan 3, 2022
    Configuration menu
    Copy the full SHA
    12ba598 View commit details
    Browse the repository at this point in the history
  3. Remember to publish task log updates

    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Jan 3, 2022
    Configuration menu
    Copy the full SHA
    6eb7c29 View commit details
    Browse the repository at this point in the history
  4. Fix websocket fleet state updates

    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Jan 3, 2022
    Configuration menu
    Copy the full SHA
    943f62f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d1ddea3 View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2022

  1. Configuration menu
    Copy the full SHA
    7cfff09 View commit details
    Browse the repository at this point in the history
  2. Remember to put task_id into task log update

    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Jan 4, 2022
    Configuration menu
    Copy the full SHA
    4f43046 View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2022

  1. Configuration menu
    Copy the full SHA
    dbbd8df View commit details
    Browse the repository at this point in the history

Commits on Jan 6, 2022

  1. Refactoring dispatch node -- finished Dispatcher class

    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Jan 6, 2022
    Configuration menu
    Copy the full SHA
    750699e View commit details
    Browse the repository at this point in the history

Commits on Jan 7, 2022

  1. Finished migrating the dispatch system -- needs testing

    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Jan 7, 2022
    Configuration menu
    Copy the full SHA
    8eba8cc View commit details
    Browse the repository at this point in the history

Commits on Jan 8, 2022

  1. Creating new API for letting users accept tasks

    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Jan 8, 2022
    Configuration menu
    Copy the full SHA
    bab1e34 View commit details
    Browse the repository at this point in the history

Commits on Jan 9, 2022

  1. Migrating to new bid notice system

    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Jan 9, 2022
    Configuration menu
    Copy the full SHA
    abf79bf View commit details
    Browse the repository at this point in the history
  2. Finished critical parts of migration -- needs testing

    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Jan 9, 2022
    Configuration menu
    Copy the full SHA
    36a2cc2 View commit details
    Browse the repository at this point in the history
  3. Fixing subtle bugs

    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Jan 9, 2022
    Configuration menu
    Copy the full SHA
    765ed0d View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2022

  1. Implement support for composed tasks

    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Jan 10, 2022
    Configuration menu
    Copy the full SHA
    1bb3bed View commit details
    Browse the repository at this point in the history
  2. Removing support for adding custom tasks -- wait until we can work mo…

    …re on refining the API
    
    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Jan 10, 2022
    Configuration menu
    Copy the full SHA
    acf6aff View commit details
    Browse the repository at this point in the history
  3. Fix stray comma

    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Jan 10, 2022
    Configuration menu
    Copy the full SHA
    3ca614b View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2022

  1. fix breaking add_fleet() py api change

    Signed-off-by: youliang <[email protected]>
    youliangtan committed Jan 11, 2022
    Configuration menu
    Copy the full SHA
    8ca867a View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2022

  1. Remove url reserved characters from task_id fields

    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Jan 12, 2022
    Configuration menu
    Copy the full SHA
    06a3447 View commit details
    Browse the repository at this point in the history
  2. Change the task_id format to something a bit nicer

    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Jan 12, 2022
    Configuration menu
    Copy the full SHA
    4baf4f8 View commit details
    Browse the repository at this point in the history
  3. Remember to fill in event states

    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Jan 12, 2022
    Configuration menu
    Copy the full SHA
    ce8bb9a View commit details
    Browse the repository at this point in the history

Commits on Jan 13, 2022

  1. Fix the usage of nlohmann::json

    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Jan 13, 2022
    Configuration menu
    Copy the full SHA
    a4fab05 View commit details
    Browse the repository at this point in the history
  2. fix json key check error

    Signed-off-by: youliang <[email protected]>
    youliangtan committed Jan 13, 2022
    Configuration menu
    Copy the full SHA
    067d8e2 View commit details
    Browse the repository at this point in the history
  3. Fix the use of nlohmann::json

    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Jan 13, 2022
    Configuration menu
    Copy the full SHA
    26f4b39 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    fffb5d6 View commit details
    Browse the repository at this point in the history
  5. Adding debug printouts to dispatcher

    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Jan 13, 2022
    Configuration menu
    Copy the full SHA
    cac1959 View commit details
    Browse the repository at this point in the history
  6. Desperate debug

    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Jan 13, 2022
    Configuration menu
    Copy the full SHA
    ede8b53 View commit details
    Browse the repository at this point in the history
  7. Fix usage of json

    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Jan 13, 2022
    Configuration menu
    Copy the full SHA
    acca4ae View commit details
    Browse the repository at this point in the history
  8. Fix category for legacy clean

    Signed-off-by: Yadunund <[email protected]>
    Yadunund committed Jan 13, 2022
    Configuration menu
    Copy the full SHA
    707aba1 View commit details
    Browse the repository at this point in the history
  9. Wrap json parse in try-catch blocks

    Signed-off-by: Yadunund <[email protected]>
    Yadunund committed Jan 13, 2022
    Configuration menu
    Copy the full SHA
    50c5982 View commit details
    Browse the repository at this point in the history

Commits on Jan 14, 2022

  1. Remove debugging cruft

    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Jan 14, 2022
    Configuration menu
    Copy the full SHA
    d3c4938 View commit details
    Browse the repository at this point in the history
  2. Fix merge

    Signed-off-by: Michael X. Grey <[email protected]>
    mxgrey committed Jan 14, 2022
    Configuration menu
    Copy the full SHA
    bf03846 View commit details
    Browse the repository at this point in the history

Commits on Jan 20, 2022

  1. fix empty itinerary gotoplace error

    Signed-off-by: youliang <[email protected]>
    youliangtan committed Jan 20, 2022
    Configuration menu
    Copy the full SHA
    6d174d2 View commit details
    Browse the repository at this point in the history

Commits on Jan 21, 2022

  1. fix compilation on foxy

    Signed-off-by: youliang <[email protected]>
    youliangtan committed Jan 21, 2022
    Configuration menu
    Copy the full SHA
    d054c32 View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2022

  1. Support PerformAction event in composed tasks (#155)

    * Implemented PerformAction event and schema
    
    Signed-off-by: Yadunund <[email protected]>
    
    * Added ActionExecutor to RobotUpdateHandle
    
    Signed-off-by: Yadunund <[email protected]>
    
    * Add category to PerformAction schema
    
    Signed-off-by: Yadunund <[email protected]>
    
    * Support teleop in full_control
    
    Signed-off-by: Yadunund <[email protected]>
    
    * Print errors when auctioneer does not receive any bids
    
    Signed-off-by: Yadunund <[email protected]>
    
    * Fix bug in ActiveTask::publish_task_state()
    
    Signed-off-by: Yadunund <[email protected]>
    
    * Add PerformAction event inside make()
    
    Signed-off-by: Yadunund <[email protected]>
    
    * Implement ActionExecution
    
    Signed-off-by: Yadunund <[email protected]>
    
    * Update ActionExecution implementation
    
    Signed-off-by: Yadunund <[email protected]>
    
    * Update ActionExecution API
    
    Signed-off-by: Yadunund <[email protected]>
    
    * Schema and other fixes
    
    Signed-off-by: Yadunund <[email protected]>
    
    * Call finished only once
    
    Signed-off-by: Yadunund <[email protected]>
    Yadunund committed Jan 24, 2022
    Configuration menu
    Copy the full SHA
    10c9a51 View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2022

  1. Fix Compose Tasks (#159)

    * Validate perform_action description inside try block
    
    Signed-off-by: Yadunund <[email protected]>
    
    * Add deserialized activity to builder
    
    Signed-off-by: Yadunund <[email protected]>
    
    * Cleanup
    
    Signed-off-by: Yadunund <[email protected]>
    
    * Add error when on_cancel is not an array
    
    Signed-off-by: Yadunund <[email protected]>
    Yadunund committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    2f41a93 View commit details
    Browse the repository at this point in the history

Commits on Jan 28, 2022

  1. Add sqlite3 dependency

    Signed-off-by: Yadunund <[email protected]>
    Yadunund committed Jan 28, 2022
    Configuration menu
    Copy the full SHA
    1c33ab9 View commit details
    Browse the repository at this point in the history
  2. Fix dispatch response

    Signed-off-by: Yadunund <[email protected]>
    Yadunund committed Jan 28, 2022
    Configuration menu
    Copy the full SHA
    0a6193c View commit details
    Browse the repository at this point in the history
  3. check priority json keys

    Signed-off-by: youliang <[email protected]>
    youliangtan committed Jan 28, 2022
    Configuration menu
    Copy the full SHA
    53b257e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    946e0d7 View commit details
    Browse the repository at this point in the history
  5. WIP

    Signed-off-by: Yadunund <[email protected]>
    Yadunund committed Jan 28, 2022
    Configuration menu
    Copy the full SHA
    012d51f View commit details
    Browse the repository at this point in the history
  6. Update json dependency (#160)

    Signed-off-by: Yadunund <[email protected]>
    Yadunund committed Jan 28, 2022
    Configuration menu
    Copy the full SHA
    c94b0ad View commit details
    Browse the repository at this point in the history
  7. Added skeleton for DatabaseLogger

    Signed-off-by: Yadunund <[email protected]>
    Yadunund committed Jan 28, 2022
    Configuration menu
    Copy the full SHA
    b9e4a70 View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2022

  1. Cleanup

    Signed-off-by: Yadunund <[email protected]>
    Yadunund committed Jan 31, 2022
    Configuration menu
    Copy the full SHA
    1efd68c View commit details
    Browse the repository at this point in the history
  2. Feature: Direct Task Assignment (#158)

    * WIP
    
    Signed-off-by: Yadunund <[email protected]>
    
    * Fix regression
    
    Signed-off-by: Yadunund <[email protected]>
    
    * Refactoring impl functions
    
    Signed-off-by: Yadunund <[email protected]>
    
    * Compute direct assignments
    
    Signed-off-by: Yadunund <[email protected]>
    
    * Implement priority for direct assignment queue
    
    Signed-off-by: Yadunund <[email protected]>
    
    * Use set for direct queue
    
    Signed-off-by: Yadunund <[email protected]>
    
    * Publish api response
    
    Signed-off-by: Yadunund <[email protected]>
    
    * Add missing schemas for response validation
    
    Signed-off-by: Yadunund <[email protected]>
    
    * Populate success response
    
    Signed-off-by: Yadunund <[email protected]>
    
    * Lock mutex when accessing queues
    
    Signed-off-by: Yadunund <[email protected]>
    
    * Add automatic charger retreat to direct queue
    
    Signed-off-by: Yadunund <[email protected]>
    
    * Store broadcast_client as optional within TaskManager
    
    Signed-off-by: Yadunund <[email protected]>
    
    * Cleanup
    
    Signed-off-by: Yadunund <[email protected]>
    Yadunund committed Jan 31, 2022
    Configuration menu
    Copy the full SHA
    7efc506 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ed53fe5 View commit details
    Browse the repository at this point in the history
  4. Backup active task

    Signed-off-by: Yadunund <[email protected]>
    Yadunund committed Jan 31, 2022
    Configuration menu
    Copy the full SHA
    02475b7 View commit details
    Browse the repository at this point in the history
  5. Tested logging active task and task logs

    Signed-off-by: Yadunund <[email protected]>
    Yadunund committed Jan 31, 2022
    Configuration menu
    Copy the full SHA
    681e416 View commit details
    Browse the repository at this point in the history
  6. Backup dispatch and direct queues

    Signed-off-by: Yadunund <[email protected]>
    Yadunund committed Jan 31, 2022
    Configuration menu
    Copy the full SHA
    0947106 View commit details
    Browse the repository at this point in the history
  7. Backup task queues

    Signed-off-by: Yadunund <[email protected]>
    Yadunund committed Jan 31, 2022
    Configuration menu
    Copy the full SHA
    060e88f View commit details
    Browse the repository at this point in the history
  8. Update task queue table

    Signed-off-by: Yadunund <[email protected]>
    Yadunund committed Jan 31, 2022
    Configuration menu
    Copy the full SHA
    4f0e58c View commit details
    Browse the repository at this point in the history