How to simulate motor power loss with diffdrive controller?
Hey, is there a way to simulate power loss? What I ultimately want to achieve:
- mobile robot with a safety scanner gets to close to some object
- safety scanner cuts power to the motors
What I have:
- A differential drive robot (with the gazebo diffdrive controller)
I think one way to achieve this is to implement a safety scanner gazebo plugin, maybe based on the Lidar sensor from gazebo, and then maybe set max_effort for the joints in question to 0.
Does that sound right? Or is there a better/standard way of achieving something similar?