Skip to content

Commit

Permalink
Update ros parameter handling in workcell_node
Browse files Browse the repository at this point in the history
  • Loading branch information
yeshasvitirupachuri committed Jan 7, 2021
1 parent 58bf039 commit dd82c6c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions myworkcell_core/src/myworkcell_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ int main(int argc, char* argv[])
// Private node handle for ros parameters
ros::NodeHandle private_node_handle("~");

// NOTE: Why not use srv msg autogenerated data type as myworkcell_core::LocalizePartRequest ?
std::string base_frame_request;
private_node_handle.param<std::string>("base_frame", base_frame_request, "world");
// NOTE: ros parameters are always string data type ?
std::string base_frame_request = private_node_handle.param<std::string>("base_frame", "world");

ROS_INFO_STREAM("ScanNPlan application node initialized");

Expand Down

0 comments on commit dd82c6c

Please sign in to comment.