Force sensor for robotic dog leg tip

Typically: "How do I... ", "How can I... " questions
Post Reply
shirellem72
Posts: 9
Joined: 28 Aug 2022, 16:25

Force sensor for robotic dog leg tip

Post by shirellem72 »

Hello there,
I'm trying to add force sensors to my robotic dog legs and I receive a nil from sim.readForceSensor.
I have read the other questions in the forum about the force sensor but i still can't figure it out. according to- https://forum.coppeliarobotics.com/viewtopic.php?t=5788 I have added a force sensor and then a sphere to the robot leg tip.
please help me figure out the problem.

My CoppeliaSim scene can be found here-
https://drive.google.com/drive/folders/ ... sp=sharing

coppelia
Site Admin
Posts: 10312
Joined: 14 Dec 2012, 00:25

Re: Force sensor for robotic dog leg tip

Post by coppelia »

Hello,

your force sensors are not dynamically enabled. Read more about dynamically enabled joints and force sensors here. You will have to set those sphere as respondable and dynamic. Now they are non-respondable and static.
Also, keep in mind that depending when or where you are reading a force sensor, the physics engine didn't yet compute a first frame, and the return might also be nil (but subsequent frames should generate valid data if correctly enabled)

Then, your other bodies are generating a lot of collisions, and those bodies are not convex or primitive shapes. This will be painfully slow.

We have an unfinished model of Spot available here. Most things are optimized (simplified meshes, convex respondable shapes, etc.. But it just stands, without motion. Feel free to improve on it.

Cheers

Post Reply