Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions src/dlio/odom.cc
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,14 @@ void dlio::OdomNode::getParams() {
// Get Node NS and Remove Leading Character
std::string ns = ros::this_node::getNamespace();
ns.erase(0,1);

// Concatenate Frame Name Strings
this->odom_frame = ns + "/" + this->odom_frame;
this->baselink_frame = ns + "/" + this->baselink_frame;
this->lidar_frame = ns + "/" + this->lidar_frame;
this->imu_frame = ns + "/" + this->imu_frame;

if(!ns.empty()){
// Concatenate Frame Name Strings
this->odom_frame = ns + "/" + this->odom_frame;
this->baselink_frame = ns + "/" + this->baselink_frame;
this->lidar_frame = ns + "/" + this->lidar_frame;
this->imu_frame = ns + "/" + this->imu_frame;
}

// Deskew FLag
ros::param::param<bool>("~dlio/pointcloud/deskew", this->deskew_, true);
Expand Down