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

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.

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

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