Skip to content

Commit

Permalink
Fix: set an approbriate frame_id.
Browse files Browse the repository at this point in the history
  • Loading branch information
aentinger committed Jan 18, 2024
1 parent 7fc4f46 commit c490d84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ int main(int argc, char ** argv) try
data.i, data.j, data.k, data.real, data.accuracy);

imu_msg.header.stamp = node->now();
imu_msg.header.frame_id = std::string("imu");

imu_msg.orientation.x = data.i;
imu_msg.orientation.y = data.j;
imu_msg.orientation.z = data.k;
Expand Down

0 comments on commit c490d84

Please sign in to comment.