Closed weiweikong closed 9 years ago
What pixhawk firmware do you use?
Handles different set of messages and consolidate to standartized imu/data
and imu/data_raw
topics.
Where:
imu/data
- oprientation computed by FCU (converted from Euler for ATTITUDE or Q from ATTITUDE_QUATERNION) plus accel data from last sensor raw data.imu/data_raw
- only data from raw messages.Note that ROS use ENU frame, while FCU - NED.
imu/mag
.local_position.cpp
?Hi Vooon, thanks for your reply. The Firmware is the stable version, px4fmu-v2_default.px4 for PX4FMU v2.x (in Pixhawk)
imu_pub.cpp
, what is the difference between void handle_attitude
and handle_attitude_quaternion
. Is that depend on the hardware of Pixhawk or IMU?tf::Quaternion orientation = tf::createQuaternionFromRPY(att.roll, -att.pitch, -att.yaw);
, it seems the output of Quaternion from imu/data
is under ENU frame ?rostopic echo /mavros/position/local
@weiweikong Any updates on this?
Please use the PX4users mailing list or Gitter if you have further questions : https://gitter.im/mavlink/mavros https://gitter.im/PX4/Firmware
Hi vooon can you guide me how I can convert data of orientation of mavros/imu/data from quaternion to spatial rotaion?
Use tf python lib. Or use Eigen.
Hi there, I am currently working on project where we are implementing a Pixhawk Autopilot and ROS for SLAM with Hokuyo UTM-30LX laser and monocular/stereo camera. Now we did not use external IMU. So the setup of our system are
I have already use MAVROS receive the data from IMU. After running
rosrun mavros mavros_node
, there are/mavros/imu/data
and/mavros/imu/data_raw
on the topic list. But I am not so familiar with Pixhawk and this research filed, so here are some questions:/mavros/imu/data
and/mavros/imu/data_raw
Regard tomavros/mavros/src/plugins/imu_pub.cpp
files,void handle_attitude
andvoid handle_attitude_quaternion
? Which kind of IMU is needed and how could we connected it with Pixhawk?void handle_raw_imu
andvoid handle_scaled_imu
?getRPY
through Quaternion data from IMU, but the result seems wrong as I rotated Pixhawk. Is that caused by Gamble Lock when the rotation more than 90 degree? And which function should be adpated to access the Euler Angle.Does anyone have any ideas or suggestions?
Thanks.
Best, Weiwei