10#ifndef _DVL_DRIVER_HPP
11#define _DVL_DRIVER_HPP
13#include <driver_msgs/msg/dvl.hpp>
14#include <driver_msgs/srv/command.hpp>
15#include <rclcpp/rclcpp.hpp>
51 bool command_mode =
false;
52 bool break_cmd =
false;
53 std::shared_ptr<timer::Timeout> timeout_;
56 std::shared_ptr<path_finder::Sender> sender_;
57 std::shared_ptr<path_finder::Listener> listener_;
60 rclcpp::Publisher<driver_msgs::msg::DVL>::SharedPtr pub_;
61 rclcpp::Service<driver_msgs::srv::Command>::SharedPtr srv_;
62 rclcpp::TimerBase::SharedPtr timer_;
88 void _convertVelocity(
const T & raw_vel, driver_msgs::msg::DVL & msg);
98 const std::shared_ptr<path_finder::pd0::Pd0Ensemble> & data, driver_msgs::msg::DVL & msg);
106 void _extractPd5Data(
107 const std::shared_ptr<path_finder::pd5::Pd5Ensemble> & data, driver_msgs::msg::DVL & msg);
114 double _calculate_average_altitude(
const float ranges[4]);
121 void sendCommandCallback(
122 const driver_msgs::srv::Command::Request::SharedPtr request,
123 driver_msgs::srv::Command::Response::SharedPtr response);
ROS 2 Node for interfacing with Teledyne Pathfinder DVL.
Definition: dvl_driver.hpp:32
~DVLDriver()
Destructor. Sends break command to stop DVL output.
Definition: dvl_driver.cpp:59
DVLDriver()
Constructor. Establishes connection and initializes publishers/services.
Definition: dvl_driver.cpp:24
Namespace for DVL driver components.
Path Finder DVL Interface Library.