Skip to content

Commit

Permalink
reflect review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
seiga-k committed Apr 17, 2024
1 parent 70f7ba7 commit 449e042
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/ypspur_ros.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ class YpspurRosNode
digital_input_enable_ = false;
pnh_.param("descrete_input", digital_input_discrete_, false);
if (digital_input_discrete_)
ROS_INFO("Digital input publish separatly");
ROS_INFO("Digital input will be published separatly");
dio_output_default_ = 0;
dio_dir_default_ = 0;
dios_.resize(dio_num_);
Expand Down Expand Up @@ -513,9 +513,7 @@ class YpspurRosNode
}
else if (digital_input_discrete_ && param.input_)
{
pubs_["di/" + param.name_] = compat::advertise<std_msgs::Bool>(
nh_, "di/" + param.name_,
pnh_, "di/" + param.name_, 1);
pubs_["di/" + param.name_] = nh_.advertise<std_msgs::Bool>("di/" + param.name_, 1);
}

std::string output_default;
Expand Down

0 comments on commit 449e042

Please sign in to comment.