remove printfs
This commit is contained in:
@@ -10,7 +10,6 @@ class BeaconPositioningPublisher : public rclcpp::Node
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
BeaconPositioningPublisher() : Node("beacon_positioning_publisher") {
|
BeaconPositioningPublisher() : Node("beacon_positioning_publisher") {
|
||||||
printf("Constructor of beacon positioning publisher\n");
|
|
||||||
publisher_ = this->create_publisher<std_msgs::msg::String>("beacon_positioning", 10);
|
publisher_ = this->create_publisher<std_msgs::msg::String>("beacon_positioning", 10);
|
||||||
timer_ = this->create_wall_timer(
|
timer_ = this->create_wall_timer(
|
||||||
500ms, std::bind(&BeaconPositioningPublisher::timer_callback, this));
|
500ms, std::bind(&BeaconPositioningPublisher::timer_callback, this));
|
||||||
@@ -21,7 +20,6 @@ class BeaconPositioningPublisher : public rclcpp::Node
|
|||||||
message.data = "Hello beacons!";
|
message.data = "Hello beacons!";
|
||||||
RCLCPP_INFO(this->get_logger(), "Publishing: '%s'", message.data.c_str());
|
RCLCPP_INFO(this->get_logger(), "Publishing: '%s'", message.data.c_str());
|
||||||
publisher_->publish(message);
|
publisher_->publish(message);
|
||||||
printf("published message yeet");
|
|
||||||
}
|
}
|
||||||
rclcpp::TimerBase::SharedPtr timer_; // timer to trigger the
|
rclcpp::TimerBase::SharedPtr timer_; // timer to trigger the
|
||||||
rclcpp::Publisher<std_msgs::msg::String>::SharedPtr publisher_; // pointer to publisher object
|
rclcpp::Publisher<std_msgs::msg::String>::SharedPtr publisher_; // pointer to publisher object
|
||||||
@@ -36,8 +34,6 @@ int main(int argc, char ** argv)
|
|||||||
|
|
||||||
rclcpp::init(argc, argv);
|
rclcpp::init(argc, argv);
|
||||||
rclcpp::spin(std::make_shared<BeaconPositioningPublisher>());
|
rclcpp::spin(std::make_shared<BeaconPositioningPublisher>());
|
||||||
printf("spun node");
|
|
||||||
rclcpp::shutdown();
|
rclcpp::shutdown();
|
||||||
printf("shut down rclcpp");
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user