Skip to content

Commit 447f8f6

Browse files
committed
Linter fixes
1 parent 1b0ecf4 commit 447f8f6

File tree

5 files changed

+23
-19
lines changed

5 files changed

+23
-19
lines changed

irobot_create_common/irobot_create_nodes/src/kidnap_estimator_publisher.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ void KidnapEstimator::kidnap_callback(irobot_create_msgs::msg::HazardDetectionVe
4343
const std::size_t wheel_drop_count = std::count_if(
4444
hazard_vector.begin(), hazard_vector.end(), [](auto hazard_vector) {
4545
return hazard_vector.header.frame_id == "wheel_drop_left" ||
46-
hazard_vector.header.frame_id == "wheel_drop_right";
46+
hazard_vector.header.frame_id == "wheel_drop_right";
4747
});
4848

4949
const std::size_t cliff_sensor_count = std::count_if(
5050
hazard_vector.begin(), hazard_vector.end(), [](auto hazard_vector) {
5151
return hazard_vector.header.frame_id == "cliff_side_left" ||
52-
hazard_vector.header.frame_id == "cliff_side_right" ||
53-
hazard_vector.header.frame_id == "cliff_front_left" ||
54-
hazard_vector.header.frame_id == "cliff_front_right";
52+
hazard_vector.header.frame_id == "cliff_side_right" ||
53+
hazard_vector.header.frame_id == "cliff_front_left" ||
54+
hazard_vector.header.frame_id == "cliff_front_right";
5555
});
5656

5757
// Set header timestamp.

irobot_create_common/irobot_create_nodes/src/motion_control/wall_follow_states.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ bool ObstacleInFront::get_next_velocity(
166166
{
167167
// Summarize IR sensors
168168
auto obstacle_in_sensors = [this](const std::vector<std::string> & sensors,
169-
const irobot_create_msgs::msg::IrIntensityVector & ir_intensity,
170-
int16_t min_obs_threshold, int16_t & obs_val) -> bool {
169+
const irobot_create_msgs::msg::IrIntensityVector & ir_intensity,
170+
int16_t min_obs_threshold, int16_t & obs_val) -> bool {
171171
for (const auto & frame : sensors) {
172172
auto frame_it = std::find_if(
173173
ir_intensity.readings.begin(),

irobot_create_common/irobot_create_nodes/src/motion_control_node.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,8 @@ void MotionControlNode::hazard_vector_callback(
333333
reflex_behavior_->update_hazards(current_state_);
334334
}
335335

336-
void MotionControlNode::commanded_velocity_callback(geometry_msgs::msg::TwistStamped::ConstSharedPtr msg)
336+
void MotionControlNode::commanded_velocity_callback(
337+
geometry_msgs::msg::TwistStamped::ConstSharedPtr msg)
337338
{
338339
if (scheduler_->has_behavior()) {
339340
const auto time_now = this->now();
@@ -353,7 +354,8 @@ void MotionControlNode::commanded_velocity_callback(geometry_msgs::msg::TwistSta
353354
}
354355

355356

356-
void MotionControlNode::commanded_velocity_unstamped_callback(geometry_msgs::msg::Twist::ConstSharedPtr msg)
357+
void MotionControlNode::commanded_velocity_unstamped_callback(
358+
geometry_msgs::msg::Twist::ConstSharedPtr msg)
357359
{
358360
geometry_msgs::msg::TwistStamped stamped_msg;
359361
stamped_msg.twist = *msg;

irobot_create_gz/irobot_create_gz_bringup/launch/sim.launch.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def generate_launch_description():
4747

4848
gz_gui_plugin_path = SetEnvironmentVariable(
4949
name='GZ_GUI_PLUGIN_PATH',
50-
value=":".join([
50+
value=':'.join([
5151
os.path.join(pkg_irobot_create_gz_plugins, 'lib')
5252
])
5353
)
@@ -59,15 +59,17 @@ def generate_launch_description():
5959
# Ignition gazebo
6060
gz_sim = IncludeLaunchDescription(
6161
PythonLaunchDescriptionSource([gz_sim_launch]),
62-
launch_arguments=[
63-
('gz_args', [LaunchConfiguration('world'),
64-
'.sdf',
65-
' -v 4',
66-
' --gui-config ',
67-
PathJoinSubstitution([pkg_irobot_create_gz_bringup,
68-
'gui', 'create3', 'gui.config'])
69-
])
70-
]
62+
launch_arguments=[(
63+
'gz_args', [
64+
LaunchConfiguration('world'),
65+
'.sdf',
66+
' -v 4',
67+
' --gui-config ',
68+
PathJoinSubstitution(
69+
[pkg_irobot_create_gz_bringup, 'gui', 'create3', 'gui.config']
70+
)
71+
]
72+
)]
7173
)
7274

7375
# clock bridge

irobot_create_gz/irobot_create_gz_plugins/Create3Hmi/Create3Hmi.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,6 @@ private:
6868

6969
} // namespace gui
7070

71-
} // namespace ignition
71+
} // namespace gz
7272

7373
#endif // IROBOT_CREATE_GZ__IROBOT_CREATE_GZ_PLUGINS__CREATE3HMI__CREATE3HMI_HH_

0 commit comments

Comments
 (0)