Skip to content

Commit

Permalink
refactor: update topic namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Andeshog committed Jan 5, 2025
1 parent d56a2e5 commit 82d4ed8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ def __init__(self):

self.joystick_axes_map_ = []

self.joy_subscriber_ = self.create_subscription(Joy, "joystick/joy",
self.joy_subscriber_ = self.create_subscription(Joy, "freya/joy",
self.joystick_cb, 1)
self.wrench_publisher_ = self.create_publisher(Wrench,
"thrust/wrench_input",
"freya/thrust/wrench_input",
1)

self.declare_parameter('surge_scale_factor', 50.0)
Expand Down
4 changes: 2 additions & 2 deletions motion/thruster_allocator/src/allocator_ros.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ ThrusterAllocator::ThrusterAllocator()
num_dof_, num_thrusters_);

wrench_subscriber_ = this->create_subscription<geometry_msgs::msg::Wrench>(
"thrust/wrench_input", 1,
"freya/thrust/wrench_input", 1,
std::bind(&ThrusterAllocator::wrench_callback, this,
std::placeholders::_1));

thruster_forces_publisher_ =
this->create_publisher<std_msgs::msg::Float32MultiArray>(
"thrust/thruster_forces", 1);
"freya/thrust/thruster_forces", 1);

calculate_thrust_timer_ = this->create_wall_timer(
100ms, std::bind(&ThrusterAllocator::calculate_thrust_timer_cb, this));
Expand Down

0 comments on commit 82d4ed8

Please sign in to comment.