Skip to content

Commit

Permalink
added ros node
Browse files Browse the repository at this point in the history
  • Loading branch information
RoseKapps committed Mar 17, 2024
1 parent d19848f commit 58d2939
Show file tree
Hide file tree
Showing 8 changed files with 276 additions and 505 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
// C++ Libraries
#include <algorithm>
#include <fstream>
#include <iostream>
#include <sstream>
#include <stdint.h>
#include <string>
#include <vector>
#include <fstream>
#include <sstream>
#include <iostream>
#include <algorithm>

#include <fcntl.h> // Used for the O_RDWR define
#include <fcntl.h> // Used for the O_RDWR define
#include <linux/i2c-dev.h> // Used for the I2C_SLAVE define
#include <sys/ioctl.h>
#include <unistd.h> // Used for the close function
#include <unistd.h> // Used for the close function


// Declare functions we can use
namespace thruster_interface_asv_driver_lib {
void init(const std::string &pathToCSVFile, int16_t *minPWM, int16_t *maxPWM);
int16_t *drive_thrusters(float *forces);
} // namespace thruster_interface_asv_driver_lib
void init(const std::string& pathToCSVFile, int16_t* minPWM, int16_t* maxPWM);
int16_t* drive_thrusters(float* forces);
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// ROS2 libraries
#include <ament_index_cpp/get_package_share_directory.hpp>
#include <rclcpp/rclcpp.hpp>
#include <std_msgs/msg/float32_multi_array.hpp>
#include <std_msgs/msg/int16_multi_array.hpp>
#include <ament_index_cpp/get_package_share_directory.hpp>
#include <chrono> // For the ROS2 Timer clock

// Custom libraries
#include <thruster_interface_asv/thruster_interface_asv_driver_lib.hpp>

This file was deleted.

132 changes: 0 additions & 132 deletions motion/thruster_interface_asv/src/thruster_interface.cppp

This file was deleted.

Loading

0 comments on commit 58d2939

Please sign in to comment.