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

Added toponap edit tool #192

Merged
merged 1 commit into from
Oct 5, 2024

Conversation

ibrahimhroob
Copy link
Contributor

@ibrahimhroob ibrahimhroob commented Sep 24, 2024

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

This Python script provides a graphical interface for editing a topological map stored in a YAML file. Using tkinter and matplotlib, users can interactively edit node attributes (position, orientation, properties), scale polygons, and globally update node names. The script allows for quaternion-to-yaw conversions and provides save and scale functionalities for adjusting polygon sizes. Node edges and positions are visually represented, and users can easily edit node details by clicking on them

Related Tickets & Documents

  • Related Issue #
  • Closes #

QA Instructions, Screenshots, Recordings

Instructions for Using the Topological Map Editor Script:

  1. Run the Script:

    • Launch the script in your Python environment.
    • The script will open a file dialog to prompt you to select a YAML file that contains your topological map.
  2. Select the YAML File:

    • Browse your computer and select the desired YAML file containing your map data.
  3. View the Topological Map:

    • Once the file is loaded, the topological map is displayed using matplotlib, with nodes represented as points and edges between them as lines.
  4. Edit Node Attributes:

    • Click on a node to open a dialog where you can edit the following attributes:
      • Node position (X, Y)
      • Orientation (Yaw)
      • Localisation by topic
      • Parent frame
      • Properties like goal tolerance and restrictions
      • Metadata and edges associated with the node.
    • After editing, click Save to apply the changes or Cancel to discard them.
  5. Scale Polygons:

    • Use the Scale Up or Scale Down buttons to globally adjust the size of polygons (if any) associated with the nodes.
  6. Save Your Changes:

    • After making changes, click the Save button to write the updated data back to the YAML file.

image

[optional] Are there any post deployment tasks we need to perform?

This Python script provides a graphical interface for editing a topological map stored in a YAML file. Using `tkinter` and `matplotlib`, users can interactively edit node attributes (position, orientation, properties), scale polygons, and globally update node names. The script allows for quaternion-to-yaw conversions and provides save and scale functionalities for adjusting polygon sizes. Node edges and positions are visually represented, and users can easily edit node details by clicking on them
@marc-hanheide
Copy link
Member

can you check the failed test first?

@marc-hanheide marc-hanheide merged commit c6b40b6 into humble-dev Oct 5, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants