Skip to content
This repository was archived by the owner on Sep 13, 2022. It is now read-only.

Commit de389bc

Browse files
committed
Remove trailing newlines and semicolons.
Signed-off-by: Chris Lalancette <[email protected]>
1 parent 889c0b7 commit de389bc

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎depthimage_to_pointcloud2/src/depthimage_to_pointcloud2_node.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ static void depthCb(const sensor_msgs::msg::Image::SharedPtr image)
3838

3939
if (nullptr == g_cam_info) {
4040
// we haven't gotten the camera info yet, so just drop until we do
41-
RCUTILS_LOG_WARN("No camera info, skipping point cloud conversion");
41+
RCUTILS_LOG_WARN("No camera info, skipping point cloud conversion")
4242
return;
4343
}
4444

@@ -65,7 +65,7 @@ static void depthCb(const sensor_msgs::msg::Image::SharedPtr image)
6565
} else if (image->encoding == sensor_msgs::image_encodings::TYPE_32FC1) {
6666
depthimage_to_pointcloud2::convert<float>(image, cloud_msg, model);
6767
} else {
68-
RCUTILS_LOG_WARN("Depth image has unsupported encoding [%s]", image->encoding.c_str());
68+
RCUTILS_LOG_WARN("Depth image has unsupported encoding [%s]", image->encoding.c_str())
6969
return;
7070
}
7171

‎turtlebot2_drivers/src/kobuki_node.cpp‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ static void cmdVelCallback(const geometry_msgs::msg::Twist::SharedPtr msg)
5454
double vyaw = std::min(std::max(msg->angular.z, -g_max_vyaw), g_max_vyaw);
5555
g_kobuki->setBaseControl(vx, vyaw);
5656
if (rcutils_system_time_now(&g_last_cmd_vel_time) != RCUTILS_RET_OK) {
57-
RCUTILS_LOG_ERROR("Failed to get system time");
57+
RCUTILS_LOG_ERROR("Failed to get system time")
5858
}
5959
}
6060

@@ -99,9 +99,9 @@ int main(int argc, char * argv[])
9999
g_max_vyaw = 1.0;
100100
node->get_parameter("max_vyaw", g_max_vyaw);
101101

102-
RCUTILS_LOG_INFO("device_port: %s\n", parameters.device_port.c_str());
103-
RCUTILS_LOG_INFO("max_vx: %f\n", g_max_vx);
104-
RCUTILS_LOG_INFO("max_vyaw: %f\n", g_max_vyaw);
102+
RCUTILS_LOG_INFO("device_port: %s", parameters.device_port.c_str())
103+
RCUTILS_LOG_INFO("max_vx: %f", g_max_vx)
104+
RCUTILS_LOG_INFO("max_vyaw: %f", g_max_vyaw)
105105

106106
parameters.sigslots_namespace = "/kobuki";
107107
parameters.enable_acceleration_limiter = true;
@@ -136,7 +136,7 @@ int main(int argc, char * argv[])
136136
gyro_yaw = g_kobuki->getHeading();
137137
gyro_vyaw = g_kobuki->getAngularVelocity();
138138
if (rcutils_system_time_now(&now) != RCUTILS_RET_OK) {
139-
RCUTILS_LOG_ERROR("Failed to get system time");
139+
RCUTILS_LOG_ERROR("Failed to get system time")
140140
}
141141
if ((now - g_last_cmd_vel_time) > 200) {
142142
g_kobuki->setBaseControl(0.0, 0.0);

0 commit comments

Comments
 (0)