ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
void handle_imu(const sensor_msgs::Imu::ConstPtr &msg
)
{
gyro_x = angular_velocity.x;
gyro_y = angular_velocity.y;
gyro_z = angular_velocity.z; }
2 | No.2 Revision |
void handle_imu(const sensor_msgs::Imu::ConstPtr
&msg&angular_velocity)
)
{ gyro_x = angular_velocity.x;
gyro_y = angular_velocity.y;
gyro_z = angular_velocity.z; }
3 | No.3 Revision |
void handle_imu(const sensor_msgs::Imu::ConstPtr &angular_velocity
)
{
gyro_x = angular_velocity.x;angular_velocity->x;
gyro_y = angular_velocity.y;angular_velocity->y;
gyro_z = angular_velocity.z; angular_velocity->z; }