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

asked 2021-12-28 19:08:20 -0500

mf0099000 gravatar image

updated 2021-12-28 20:16:15 -0500

osilva gravatar image

I am trying to use MATLAB on Windows to connect with ROS&Gazebo on ubuntu. I followed this tutorials 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/set_model_configuration 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?

edit retag flag offensive close merge delete