generated from wessel/boilerplate
fix(imu_data_simulator): Rename node
This commit is contained in:
@@ -14,13 +14,12 @@ find_package(rclcpp REQUIRED)
|
|||||||
find_package(sensor_msgs REQUIRED)
|
find_package(sensor_msgs REQUIRED)
|
||||||
find_package(geometry_msgs REQUIRED)
|
find_package(geometry_msgs REQUIRED)
|
||||||
|
|
||||||
add_executable(data_simulator_node src/g2_2025_data_simulator_node/nodes/data_simulator.cpp src/g2_2025_data_simulator_node/main.cpp)
|
add_executable(imu_data_simulator_node src/g2_2025_imu_data_simulator_node/nodes/imu_data_simulator.cpp src/g2_2025_imu_data_simulator_node/main.cpp)
|
||||||
# add_executable(data_simulator_node src/g2_2025_data_simulator_node/nodes/temp.cpp)
|
|
||||||
|
|
||||||
ament_target_dependencies(data_simulator_node rclcpp sensor_msgs geometry_msgs)
|
ament_target_dependencies(imu_data_simulator_node rclcpp sensor_msgs geometry_msgs)
|
||||||
|
|
||||||
install(TARGETS
|
install(TARGETS
|
||||||
data_simulator_node
|
imu_data_simulator_node
|
||||||
DESTINATION lib/${PROJECT_NAME}
|
DESTINATION lib/${PROJECT_NAME}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
#include "rclcpp/rclcpp.hpp"
|
#include "rclcpp/rclcpp.hpp"
|
||||||
#include "nodes/data_simulator.hpp"
|
#include "nodes/imu_data_simulator.hpp"
|
||||||
|
|
||||||
int main(int argc, char *argv[]) {
|
int main(int argc, char *argv[]) {
|
||||||
rclcpp::init(argc, argv);
|
rclcpp::init(argc, argv);
|
||||||
|
|
||||||
auto node = std::make_shared<assignments::three::data_simulator_node::DataSimulator>();
|
auto node = std::make_shared<assignments::three::imu_data_simulator_node::DataSimulator>();
|
||||||
|
|
||||||
rclcpp::spin(node);
|
rclcpp::spin(node);
|
||||||
rclcpp::shutdown();
|
rclcpp::shutdown();
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#include "data_simulator.hpp"
|
#include "imu_data_simulator.hpp"
|
||||||
|
|
||||||
namespace assignments::three::data_simulator_node {
|
namespace assignments::three::imu_data_simulator_node {
|
||||||
|
|
||||||
DataSimulator::DataSimulator() : Node("data_simulator") {
|
DataSimulator::DataSimulator() : Node("imu_data_simulator") {
|
||||||
RCLCPP_INFO(this->get_logger(), "DataSimulator node created");
|
RCLCPP_INFO(this->get_logger(), "DataSimulator node created");
|
||||||
|
|
||||||
start_time_ = this->now();
|
start_time_ = this->now();
|
||||||
@@ -185,4 +185,4 @@ double DataSimulator::get_axis_value(const std::string& axis, double t) {
|
|||||||
return last_value;
|
return last_value;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace assignments::three::data_simulator_node
|
} // namespace assignments::three::imu_data_simulator_node
|
||||||
Reference in New Issue
Block a user