ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

Yes the createQuaternionFromRPY constructor is deprecated. But you can do it using two lines with the setRPY method:

float roll = 0;
float pitch = 0;
float yaw = 0;

tf2::Quaternion myQuaternion;
myQuaternion.setRPY( roll, pitch, yaw );

Hope this helps.