Skip to content

Commit

Permalink
fix issue #908: wrong quaternion parsing in ROS
Browse files Browse the repository at this point in the history
  • Loading branch information
facontidavide committed Jan 9, 2024
1 parent 12bbdec commit d01a956
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plotjuggler_plugins/ParserROS/ros_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ void ParserROS::parseQuaternion(const std::string& prefix, double& timestamp)
getSeries(prefix + "/x").pushBack({ timestamp, quat.x });
getSeries(prefix + "/y").pushBack({ timestamp, quat.y });
getSeries(prefix + "/z").pushBack({ timestamp, quat.z });
getSeries(prefix + "/z").pushBack({ timestamp, quat.w });
getSeries(prefix + "/w").pushBack({ timestamp, quat.w });

auto rpy = Msg::QuaternionToRPY(quat);
getSeries(prefix + "/roll").pushBack({ timestamp, rpy.roll });
Expand Down

0 comments on commit d01a956

Please sign in to comment.