ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
The message type seems to be different.
Perhaps the following will solve the problem?
void imuOrientation( const sensor_msgs::Imu& imu_msgs){
imu_quaternion[0]=imu_msgs.orientation.x;
imu_quaternion[1]=imu_msgs.orientation.y;
imu_quaternion[2]=imu_msgs.orientation.z;
imu_quaternion[3]=imu_msgs.orientation.w;
}