ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
The issue has been solved by de-referentiating the pointer and using the local variable for data usage:
sensor_msgs::ImuConstPtr s = m.instantiate<sensor_msgs::Imu>();
sensor_msgs::Imu imu = (*s);
double ax = imu.linear_acceleration.x;