Skip to content

Commit

Permalink
fixed topic names + docker
Browse files Browse the repository at this point in the history
  • Loading branch information
mehulgoel873 committed Jan 10, 2025
1 parent 9881ec5 commit 540efa4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN echo 'source "/opt/ros/humble/setup.bash" --' >> ~/.bashrc && \
echo 'cd rb_ws' >> ~/.bashrc && \
echo 'colcon build --symlink-install' >> ~/.bashrc && \
echo 'source install/local_setup.bash' >> ~/.bashrc && \
echo 'cchmod -R +x src/buggy/scripts/'
echo 'chmod -R +x src/buggy/scripts/' >> ~/.bashrc

# add mouse to tmux
RUN echo 'set -g mouse on' >> ~/.tmux.conf
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 @@ -58,7 +58,7 @@ def __init__(self):
Float64, "input/steering", 1
)
self.heading_publisher = self.create_publisher(
Float32, "auton/debug/heading", 1
Float32, "debug/heading", 1
)

# Subscribers
Expand Down
4 changes: 2 additions & 2 deletions rb_ws/src/buggy/scripts/controller/stanley_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ class StanleyController(Controller):
def __init__(self, start_index, namespace, node):
super(StanleyController, self).__init__(start_index, namespace, node)
self.debug_reference_pos_publisher = self.node.create_publisher(
NavSatFix, "auton/debug/reference_navsat", 1
NavSatFix, "controller/debug/reference_navsat", 1
)
self.debug_error_publisher = self.node.create_publisher(
ROSPose, "auton/debug/error", 1
ROSPose, "controller/debug/stanley_error", 1
)

def compute_control(self, state_msg : Odometry, trajectory : Trajectory):
Expand Down
2 changes: 1 addition & 1 deletion rb_ws/src/buggy/scripts/path_planner/path_planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def __init__(self) -> None:
self.left_curb = Trajectory(json_filepath="/rb_ws/src/buggy/paths/" + curb_name) #TODO: Fixed filepath, not good

#Publishers
self.other_buggy_xtrack_publisher = self.create_publisher(Float64, "self/debug/other_buggy_xtrack", 10)
self.other_buggy_xtrack_publisher = self.create_publisher(Float64, "debug/other_buggy_xtrack", 10)
self.traj_publisher = self.create_publisher(TrajectoryMsg, "self/cur_traj", 10)

#Subscribers
Expand Down

0 comments on commit 540efa4

Please sign in to comment.