ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
play bag file using rosbag
robag play xxxxx.bag --clock
it will publish all the topics in bags file.
Write subcriber in your code to get values.
2 | No.2 Revision |
play bag file using rosbag
robag play xxxxx.bag --clock
it will publish all the topics in bags file.
Write subcriber in your code to get values.
check this for more info
3 | No.3 Revision |
play bag file using rosbag
robag play xxxxx.bag --clock
it will publish all the topics in bags file.
Write subcriber in your code to get values.
check this for more info
Edit
ros::Subscriber sub = nh.subscribe("imu", 1000, &imuCallback, this);
void Callback(const sensor_msgs::Imu::ConstPtr& msg)
{
double lax = msg->linear_acceleration.x;
double lay = msg->linear_acceleration.y;
double laz= msg->linear_acceleration.z;
}