differences in simulation from gazebo and Matlab
Dear,
I have a simple urdf model and have tried to control the model using some nonlinear controller. To verify the controller, I tested it in Matlab simulation.
The designed controller worked well in the Matlab environment, but the c++ coded controller has not worked in gazebo. So I made open loop test both in ROS and Matlab, for example, applied unit force and moment to the model and checked the outputs of positions and velocities. The values from the gazebo simulation is far smaller than those from Matlab. What should I modify or check in gazebo simulation ?
I checked mass properties, put viscous damping (modeled using feedback velocity), used the time from ros::Time::now().toSec().
Is this problem related to time in gazebo?