Skip to content

Commit

Permalink
fixed according to saransh
Browse files Browse the repository at this point in the history
  • Loading branch information
mehulgoel873 committed Jan 14, 2025
1 parent 8c34044 commit 211d648
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion rb_ws/src/buggy/scripts/controller/controller_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(self):

self.declare_parameter("traj_name", "buggycourse_safe.json")
traj_name = self.get_parameter("traj_name").value
self.cur_traj = Trajectory(json_filepath=os.environ["TRAJPATH"] + traj_name) #TODO: Fixed filepath, not good
self.cur_traj = Trajectory(json_filepath=os.environ["TRAJPATH"] + traj_name)

start_index = self.cur_traj.get_index_from_distance(start_dist)

Expand Down
4 changes: 2 additions & 2 deletions rb_ws/src/buggy/scripts/path_planner/path_planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ def __init__(self) -> None:
#Parameters
self.declare_parameter("traj_name", "buggycourse_safe.json")
traj_name = self.get_parameter("traj_name").value
self.nominal_traj = Trajectory(json_filepath=os.environ["TRAJPATH"] + traj_name) #TODO: Fixed filepath, not good
self.nominal_traj = Trajectory(json_filepath=os.environ["TRAJPATH"] + traj_name)

self.declare_parameter("curb_name", "")
curb_name = self.get_parameter("curb_name").value
curb_name = None if curb_name == "" else curb_name
if curb_name is None:
self.left_curb = None
else:
self.left_curb = Trajectory(json_filepath=os.environ["TRAJPATH"] + curb_name) #TODO: Fixed filepath, not good
self.left_curb = Trajectory(json_filepath=os.environ["TRAJPATH"] + curb_name)

#Publishers
self.other_buggy_xtrack_publisher = self.create_publisher(Float64, "debug/other_buggy_xtrack", 10)
Expand Down
4 changes: 0 additions & 4 deletions setup.bash

This file was deleted.

0 comments on commit 211d648

Please sign in to comment.