mirror of
https://github.com/modelec/modelec-marcel-ROS.git
synced 2026-01-18 16:47:43 +01:00
log
This commit is contained in:
@@ -139,7 +139,7 @@ namespace Modelec
|
|||||||
}
|
}
|
||||||
|
|
||||||
auto w = waypoint_queue_.front().ToMsg();
|
auto w = waypoint_queue_.front().ToMsg();
|
||||||
RCLCPP_DEBUG(node_->get_logger(), "Sending waypoint: x: %d, y: %d, theta: %f, id: %d",
|
RCLCPP_INFO(node_->get_logger(), "Sending waypoint: x: %d, y: %d, theta: %f, id: %d",
|
||||||
w.x, w.y, w.theta, w.id);
|
w.x, w.y, w.theta, w.id);
|
||||||
waypoint_pub_->publish(w);
|
waypoint_pub_->publish(w);
|
||||||
waypoint_queue_.pop();
|
waypoint_queue_.pop();
|
||||||
|
|||||||
@@ -132,13 +132,13 @@ namespace Modelec
|
|||||||
{
|
{
|
||||||
RCLCPP_INFO_ONCE(get_logger(), "State: WAIT_START - Match starting");
|
RCLCPP_INFO_ONCE(get_logger(), "State: WAIT_START - Match starting");
|
||||||
|
|
||||||
std_msgs::msg::Bool start_odo_msg;
|
nav_->SetSpawn(modelec_interfaces::msg::Spawn::BOTTOM);
|
||||||
start_odo_msg.data = true;
|
|
||||||
start_odo_pub_->publish(start_odo_msg);
|
|
||||||
|
|
||||||
rclcpp::sleep_for(std::chrono::milliseconds(300));
|
rclcpp::sleep_for(std::chrono::milliseconds(300));
|
||||||
|
|
||||||
nav_->SetSpawn(modelec_interfaces::msg::Spawn::BOTTOM);
|
std_msgs::msg::Bool start_odo_msg;
|
||||||
|
start_odo_msg.data = true;
|
||||||
|
start_odo_pub_->publish(start_odo_msg);
|
||||||
|
|
||||||
match_start_time_ = now;
|
match_start_time_ = now;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user