Skip to content

Instantly share code, notes, and snippets.

View PranshuTople's full-sized avatar
🤖
Living Around Robots!

Pranshu Tople PranshuTople

🤖
Living Around Robots!
View GitHub Profile
@marcoarruda
marcoarruda / conversion_node.cpp
Last active June 27, 2024 20:26
ROS Quaternion to RPY
#include <tf/tf.h>
#include <nav_msgs/Odometry.h>
#include <geometry_msgs/Pose2D.h>
ros::Publisher pub_pose_;
void odometryCallback_(const nav_msgs::Odometry::ConstPtr msg) {
geometry_msgs::Pose2D pose2d;
pose2d.x = msg->pose.pose.position.x;
pose2d.y = msg->pose.pose.position.y;