Skip to content

Commit

Permalink
Hearbeat throttle and estimation launch
Browse files Browse the repository at this point in the history
  • Loading branch information
deathstar committed Dec 11, 2024
1 parent a660a20 commit d16a48e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mars_ws/src/heartbeat/heartbeat/HeartbeatBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def check_status(self):
if (t - self.startup_time).nanoseconds / 1e9 < p.BASE_HEARTBEAT_WARMUP:
return
if (t - self.last_received).nanoseconds / 1e9 > p.BASE_WARNING_TOLERANCE:
self.get_logger().warn(p.BASE_WARNING_STRING)
self.get_logger().warn(p.BASE_WARNING_STRING, throttle_duration_sec=5)


def main(args=None):
Expand Down
4 changes: 4 additions & 0 deletions mars_ws/src/odometry/launch/estimation_launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ def generate_launch_description():
executable='imu_filter_madgwick_node',
name='imu_filter_madgwick',
output='screen',
remappings=[
('imu/data', 'zed/imu/data'),
('imuu/mag', 'zed/imu/mag')
],
parameters=[imu_config]
),
])
1 change: 0 additions & 1 deletion mars_ws/src/odometry/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
<exec_depend>nav_msgs</exec_depend>
<exec_depend>std_msgs</exec_depend>
<exec_depend>ros2launch</exec_depend>
<exec_depend>robot_localization</exec_depend>

<test_depend>ament_copyright</test_depend>
<test_depend>ament_flake8</test_depend>
Expand Down

0 comments on commit d16a48e

Please sign in to comment.