Is it possible to know diff_drive_controller frequency?
Hi all,
My problem is the following:
I am using TIAGoSimulation in Gazebo to perform some experiments with wheeled mobile robots.
My goal is to have the robot performing autonomously a desired trajectory.
From this paper I found parametric equations for the 8-shaped trajectory and therefore I can compute linear and angular velocity commands for executing it.
Now, my assumption is:
- the diff_drive_controller is a "low-level" controller that receives as input linear and angular velocities for the mobile platform, converts them in rotational velocities for left and right wheel and ensures that the wheels rotate at that speed.
Therefore, my question is:
- Which is the operational frequency of the diff_drive_controller?
Plus, once I know it, in order to execute the desired trajectory, is it enough to do something like that?
cmd_vel_pub_ = nh.advertise<geometry_msgs::Twist>("cmd_vel", 1);
...
cmd_vel_pub.publish(cmd_vel_msg);
ros::Rate(controller_frequency).sleep();
where controller_frequency
is, of course, the controller frequency.
Thanks, Federico.