Skip to content

Using JSON files #9

Description

@Schellenberg3

Summary

This comment summarizes several conversations about how to use JSON data structures to pass information to the photogrammetry_capture_runner.py and read_posn.py.

Whatever program runs the robot to get the orthogonal images to estimate the size, position, and orientation should output a JSON file with that information. This file should also be where the user inputs their desired path plan and any parameters.

Because both of the aforementioned files require the same information (about both part and plan) this would ensure that this information is consistent between the two.

For testing it'll be easiest to manually create or edit these JSON files so the photogrammetry_capture_runner.py and read_posn.py scripts will take a desired JSON as input and eventually, we will develop a parameter server so the user may specify a specific JSON in ROS.

In actual deployment, however, the users should not need to interact with the JSON file so the system will need to save and load this information between the programs.

Actionable Items

  • Create new JSON structure
  • Create a JSON directory in scripts (to keep this folder clean)
  • Edit photogrammetry_capture_runner.py to take a user input
  • read_posn.py to take a user input
  • Write a function to select the path plan and set the plans parameters from the plan indicated in the JSON (will likely need something like this to ensure consistency of default values specified in path_plans.py)

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions