ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How to include motor model in my robot simulation?

asked 2022-06-21 19:54:20 -0500

rcbot gravatar image

Hi, I am working on a project which needs to simulate robotic arm in gazebo. But, whatever, I understand there is no provision to include motor model in the simulation. But, motor model needs to be included due to our project requirement. I really appreciate it if someone can share their thoughts and suggestion to simulate motor model inside the gazebo.

Thank you, RCboT

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-06-22 04:57:06 -0500

ljaniec gravatar image

What do you mean by simulating a motor model there? It is not exactly clear - do you want to have an input to the motor model inside the simulation? So it produces forces etc. as an output?

You could use MoveIt and it's controllers, e.g. like here:

edit flag offensive delete link more

Comments

Thanks for your answer Ljaniec. I mean to say, how can we include motor inertia , damping and friction of our motor? Sorry I wasn't very clear before. Thank you

rcbot gravatar image rcbot  ( 2022-06-22 20:21:05 -0500 )edit

It looks like you need to first create a mathematical model of motor you want to test (e.g. using input-output decoupling?) and then implement it in Matlab & Simulink so you can "react" to the control signals as you wanted (as in a motor with inertia, damping etc.), then (for simulation) prepare an URDF model with MoveIt or directly with ros2_controlplugins and connect it with your mathematical model of motor. There is probably a much simpler approach, where the internal ROS node would translate the control signals as in a modeled real engine - I think the hardest part is the engine model part, where you have to do a literature review. I found a a repository which could be a good start base/an example at least: https://github.com/nilseuropa/gazebo_...,

ljaniec gravatar image ljaniec  ( 2022-06-23 02:02:50 -0500 )edit

Thanks for your suggestions Ljaniec. I will go through them :)

rcbot gravatar image rcbot  ( 2022-06-23 19:46:33 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2022-06-21 19:54:20 -0500

Seen: 139 times

Last updated: Jun 22 '22