Robotics StackExchange | Archived questions

MATLAB ROS connection, Failed to create a /gazebo/set_model_configuration service client

I am trying to use MATLAB on Windows to connect with ROS&Gazebo on ubuntu. I followed this tutorials https://ww2.mathworks.cn/help/releases/R2018b/robotics/examples/control-lbr-manipulator-motion-through-joint-torque.html To make this usecase work, I installed VMWare workstation and ROS 2 Dashing and Gazebo virtual machine. It works and I can use MATLAB to control the gazebo with this virtual machine. But my final target is to use torque control and KUKA FRI to control Kuka iiwa robot. So I in-stalled this kuka fri package on another virtual machine. But after I set everything, I try to call the service on MATLAB side. I receive this error always.

Failed to create a /gazebo/setmodelconfiguration service client.

Some people told me that I should replace rosjava_messages.jar in Matlab installation folder. I tried, and it didn't work. I believe that there should be some packages/steps I miss when I set up my virtual machine. Can anybody help me?

Asked by mf0099000 on 2021-12-28 20:08:20 UTC

Comments

Answers