Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Commit

Permalink
Merge branch 'main' into user/akash-venkateshwaran/33-normalising_obj…
Browse files Browse the repository at this point in the history
…_funcs
  • Loading branch information
patrick-5546 authored Mar 9, 2024
2 parents 727fc78 + 61e7d47 commit a5946db
Show file tree
Hide file tree
Showing 17 changed files with 925 additions and 336 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
test-definitions:
# sailbot_workspace: use locally-defined file
# other repositories: set to UBCSailbot/sailbot_workspace/.github/workflows/test_definitions.yml@<release>
uses: UBCSailbot/sailbot_workspace/.github/workflows/test_definitions.yml@v1.6.1
uses: UBCSailbot/sailbot_workspace/.github/workflows/test_definitions.yml@v1.7.0
# see https://github.com/UBCSailbot/sailbot_workspace/blob/main/.github/workflows/test_definitions.yml
# for documentation on the inputs and secrets below
with:
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ __pycache__/
# global paths with exceptions
/global_paths/*.csv
!/global_paths/mock_global_path.csv
!/global_paths/path.csv
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,8 @@ Launch arguments are added to the run command in the format `<name>:=<value>`.
| `log_level` | Logging level | A [severity level][severity level] (case insensitive) |

[severity level]: <https://docs.ros.org/en/humble/Concepts/About-Logging.html#severity-level>

### Server Files

The server files: `get_server.py` and `post_server.py` are basic http server files which are used for testing the
global_path module's GET and POST methods.
10 changes: 5 additions & 5 deletions global_paths/path_builder/path_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
from custom_interfaces.msg import HelperLatLon, Path
from flask import Flask, jsonify, render_template, request

from local_pathfinding.node_mock_global_path import (
from local_pathfinding.global_path import (
_interpolate_path,
calculate_interval_spacing,
interpolate_path,
write_to_file,
)

Expand Down Expand Up @@ -65,7 +65,7 @@ def main():
path_spacing = calculate_interval_spacing(pos=pos, waypoints=waypoints)

path = Path(waypoints=waypoints)
path = interpolate_path(
path = _interpolate_path(
global_path=path,
interval_spacing=args.interpolate,
pos=pos,
Expand Down Expand Up @@ -134,7 +134,7 @@ def _delete_paths():


@app.route("/interpolate_path", methods=["POST"])
def _interpolate_path():
def _interpolate_path_():
data = request.json
result = _handle_interpolate(data)
return jsonify(result)
Expand Down Expand Up @@ -229,7 +229,7 @@ def _handle_interpolate(data):

try:
path_spacing = calculate_interval_spacing(pos=point1, waypoints=path.waypoints)
path = interpolate_path(
path = _interpolate_path(
global_path=path,
interval_spacing=interval_spacing,
pos=point1,
Expand Down
2 changes: 0 additions & 2 deletions global_paths/path_builder/requirements.txt

This file was deleted.

Loading

0 comments on commit a5946db

Please sign in to comment.