Skip to content

Commit 58ba0b0

Browse files
author
Julien Cassette
committed
Change connection instructions
1 parent 4621da8 commit 58ba0b0

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

README.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,17 @@ For the moment, these models control the drone with ID 1, but you can change the
2323

2424
To connect Simulink with the ROS server, follow these steps:
2525

26-
1. Open Simulink
27-
2. In the Tools menu, navigate to Robotics Operating System, and click on Configure Network Addresses
28-
3. In ROS Master Node, set Network Address to Custom
29-
4. In ROS Master Node, fill the Hostname/IP Address field with the IP of your virtual machine
30-
5. In ROS Master Node, let the Port field with the default port ROS is running on (11311)
31-
6. Test the connectivity using the Test button
26+
1. In MATLAB, execute the `rosinit` function with the IP of the virtual machine
27+
2. In Simulink, navigate to Tools > Robotics Operating System > Configure Network Addresses
28+
3. In ROS Master, make sure Network Address is set to Default
29+
4. In Node Host, make sure Network Address is set to Default
30+
5. Test the connectivity using the Test button
31+
32+
Refer to the following links for more information:
33+
34+
- [Connect to a ROS Network](https://www.mathworks.com/help/robotics/examples/connect-to-a-ros-network.html)
35+
- [Simulink and ROS Interaction](https://www.mathworks.com/help/robotics/ug/simulink-and-ros-interaction.html)
36+
- [Configure ROS Network Addresses](https://www.mathworks.com/help/robotics/ug/configure-ros-network-addresses.html)
3237

3338
## Notes ##
3439

0 commit comments

Comments
 (0)