Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion turtlesim/tutorials/draw_square.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ void turn(rclcpp::Publisher<geometry_msgs::msg::Twist>::SharedPtr twist_pub)

void timerCallback(rclcpp::Publisher<geometry_msgs::msg::Twist>::SharedPtr twist_pub)
{
if (g_first_pose_set)
if (!g_first_pose_set) // Fixed the issue where only a straight line was drawn instead of a square.
{
return;
}
Expand Down