Created
August 14, 2017 17:53
-
-
Save benjaminabruzzo/88bba30858c473822e36b966931c33b3 to your computer and use it in GitHub Desktop.
create_autonomy frame params
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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