Skip to content

Instantly share code, notes, and snippets.

@benjaminabruzzo
Created August 14, 2017 17:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benjaminabruzzo/88bba30858c473822e36b966931c33b3 to your computer and use it in GitHub Desktop.
Save benjaminabruzzo/88bba30858c473822e36b966931c33b3 to your computer and use it in GitHub Desktop.
create_autonomy frame params
// In the create driver class header file:
//change
std::string dev;
//to
std::string dev, odom_frame, base_frame;
// In the create_driver.cpp file
// add:
privNh.param<std::string>("odom_frame", odom_frame, "/odom");
privNh.param<std::string>("base_frame", base_frame, "/base_footprint");
// replace:
tfOdom.header.frame_id = odom_frame;
tfOdom.child_frame_id = base_frame;
odom.header.frame_id = odom_frame;
odom.child_frame_id = base_frame;
// tfOdom.header.frame_id = "create/odom";
// tfOdom.child_frame_id = "create/base_footprint";
// odom.header.frame_id = "create/odom";
// odom.child_frame_id = "create/base_footprint";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment