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

Revision history [back]

click to hide/show revision 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; }

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; }

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; }