32 double quaternion_sum = pow(msg->orientation.x, 2)
33 + pow(msg->orientation.y, 2)
34 + pow(msg->orientation.z, 2)
35 + pow(msg->orientation.w, 2);
37 if (abs(1 -quaternion_sum) < 0.01)
57 int main(
int argc,
char** argv){
58 ros::init(argc, argv,
"tool_pose_tf_broadcaster");
65 ROS_INFO(
"Tool Pose TF Broadcater running!");
void poseCallback(const geometry_msgs::PoseConstPtr &msg)
TFSIMD_FORCE_INLINE void setX(tfScalar x)
TFSIMD_FORCE_INLINE void setY(tfScalar y)
Subscriber subscribe(const std::string &topic, uint32_t queue_size, void(T::*fp)(M), T *obj, const TransportHints &transport_hints=TransportHints())
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
TFSIMD_FORCE_INLINE void setZ(tfScalar z)
ROSCPP_DECL void spin(Spinner &spinner)
tf::TransformBroadcaster br
tf::Quaternion orientation