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

ROS/Gazebo/Matlab problem

asked 2018-04-04 05:34:37 -0500

Msan gravatar image

I'm trying to create a model in gazebo that use the hokuyo model sensor to generate 3D pointclouds. I have a plugin in gazebo that set the rotational speed of the model (the target speed is set througth a ROS topic). I have also a plugin that publish the laser scan to a ROS node, and I am able to visualize it with rviz. The problem is with Matlab. I am able to conect to the ROS network, I can see all the topics using , I can publish messages to set the speed to a desired one, but im not able to recieve any message from ROS, matlab seems to wait for messages until I finish the fucntion(I use the receive() function). And this happends with every topic. I use Matlab 2018a, Gazebo 7 and ROS kinect. Does anybody knows If there is some incompatibility issues? The is another method for receiving ROS messages in Matlab?

edit retag flag offensive close merge delete



May I suggest a title change? Your question is very much about "matlab not receiving any topic data" (or something similar).

gvdhoorn gravatar image gvdhoorn  ( 2018-04-04 07:04:57 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-04-04 05:55:01 -0500

gvdhoorn gravatar image

Probably a network configuration issue. Make sure to set ROS_IP to the appropriate value on each involved host. See #q230737.

edit flag offensive delete link more


Thank you! Yeah, it was a network problem configuration. I was able to thank to the info on that link.

Msan gravatar image Msan  ( 2018-04-04 07:01:32 -0500 )edit

Question Tools

1 follower


Asked: 2018-04-04 05:34:37 -0500

Seen: 239 times

Last updated: Apr 04 '18