Closed argolomb closed 2 years ago
Can you share the repository for the project. It would help me understand the Physics settings you are using. [AIRO-1702]
Can you share the repository for the project. It would help me understand the Physics settings you are using. [AIRO-1702]
Yes, sure.
This issue has been marked stale because it has been open for 14 days with no activity. Please remove the stale label or comment on this issue, or the issue will be automatically closed in the next 14 days.
I am also hoping for a solution here. @vidurvij-Unity any luck?
I am also hoping for a solution here. @vidurvij-Unity any luck?
My solution was:
The solution is set a rigidbody.inertiaTensor value.
public Vector3 tensor;
public Rigidbody rb;
void Start()
{
ros = ROSConnection.GetOrCreateInstance();
ros.Subscribe<TwistMsg>("cmd_vel", ReceiveROSCmd);
rb.inertiaTensor = tensor;
rb.centerOfMass = centerOfMass.transform.localPosition;
}
@argolomb I am trying to recreate another vehicle using similar concept. Could you please illustrate how have you calculate the inertia tensor ? My vehicle is not able to climb on the hills.
Describe the bug I'm trying to reproduce this robot(https://global.agilex.ai/products/scout-2-0) in unity to replace gazebo as my simulation platform. Everything is fine with URDF-Importer and ROS-TCP Connection. I can get the joint state message and convert to movement with "ArticulationDrive drive = joint.xDrive;"
The mobile robot go forward and backward but no curves or spin around his center.
The problem occur when the wheel receive different velocities.
I've tried use cmd_vel msg and calculate the velocity in each wheel but with the same behavior.
Console logs / stack traces
Expected behavior The same behavior in all software
Screenshots <img src="http://img.youtube.com/vi/1GrUhLVfuIg/0.jpg" alt="IMAGE ALT TEXT HERE" width="240" height="180" border="10" />
Environment (please complete the following information, where applicable):