Skip to content

Commit

Permalink
Fix cpp linters.
Browse files Browse the repository at this point in the history
  • Loading branch information
livanov93 committed Sep 9, 2022
1 parent dde12b3 commit 84e5b45
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ign_ros2_control/src/ign_system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,10 @@ bool IgnitionSystem::initSim(

RCLCPP_INFO_STREAM(
this->nh_->get_logger(),
"Joint '" << this->dataPtr->joints_[mimic_joint.joint_index].name << "'is mimicking joint '" <<
this->dataPtr->joints_[mimic_joint.mimicked_joint_index].name << "' with multiplier: " <<
mimic_joint.multiplier);
"Joint '" << this->dataPtr->joints_[mimic_joint.joint_index].name <<
"'is mimicking joint '" <<
this->dataPtr->joints_[mimic_joint.mimicked_joint_index].name << "' with multiplier: " <<
mimic_joint.multiplier);

this->dataPtr->mimic_joints_.push_back(mimic_joint);
suffix = "_mimic";
Expand Down Expand Up @@ -510,7 +511,6 @@ IgnitionSystem::perform_command_mode_switch(
const std::vector<std::string> & stop_interfaces)
{
for (unsigned int j = 0; j < this->dataPtr->joints_.size(); j++) {

for (const std::string & interface_name : stop_interfaces) {
// Clear joint control method bits corresponding to stop interfaces
if (interface_name == (this->dataPtr->joints_[j].name + "/" +
Expand Down Expand Up @@ -631,7 +631,6 @@ hardware_interface::return_type IgnitionSystem::write(
}

if (this->dataPtr->joints_[i].joint_control_method & POSITION) {

// Get error in position
double error = this->dataPtr->joints_[i].joint_position_cmd -
this->dataPtr->joints_[i].joint_position;
Expand Down Expand Up @@ -660,7 +659,8 @@ hardware_interface::return_type IgnitionSystem::write(
{
this->dataPtr->ecm->CreateComponent(
this->dataPtr->joints_[i].sim_joint,
ignition::gazebo::components::JointForceCmd({this->dataPtr->joints_[i].joint_effort_cmd}));
ignition::gazebo::components::JointForceCmd(
{this->dataPtr->joints_[i].joint_effort_cmd}));
} else {
const auto jointEffortCmd =
this->dataPtr->ecm->Component<ignition::gazebo::components::JointForceCmd>(
Expand Down

0 comments on commit 84e5b45

Please sign in to comment.