Multiple mobile robots simulation with simulink and gazebo

Hi, I'm trying to perform co-simulation between Simulink and Gazebo, driving more then one robot. I use the Gazebo apply command block in order to drive the robots. It works when I drive only one robot, but if I try to drive more then one robots, only one robot moves. Can someone help me?

 채택된 답변

Gaurav Bhosale
Gaurav Bhosale 2021년 3월 2일
편집: Gaurav Bhosale 2021년 3월 2일

0 개 추천

Hi Alberto,
The ApplyLinkWrench command with two robot can be configured as follows and work for two robots.
Can you specify which ApplyCommand are you trying?
Thanks.
With Regards,
Gaurav Bhosale

댓글 수: 4

Hi Gaurav, I'm using ApplyJointTorque. I'm trying to control five different unicycles, so I'm using one ApplyCommand for every wheel, selecting for example robotA/left_wheel_hinge for every wheel and for every robot. The problem is that only one robot moves and the others don't receive any command. Do you know what may be the problem?
Thanks
Hi Alberto,
There is overriding issue associated with same joint name for ApplyJointTorque. e.g. If you have two robots of different name robotA , robotB but having same joint name robotA/left_wheel_hinge and robotB/left_wheel_hinge, then the torque values of robotA are overriden by robotB torque values. We are working on that issue. Meanwhile, I suggest you to change the joint name such as 'robotA/left_wheel_hingeA' and 'robotB/left_wheel_hingeB', so that the command will not be overridden. Please try this and let me know, it solves your issue or not.
Thanks
Thank you very much. I will try and I will let you know.
It worked. Thanks Gaurav.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Robotics에 대해 자세히 알아보기

제품

릴리스

R2020b

질문:

2021년 2월 26일

댓글:

2021년 3월 5일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by