You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tutorials/pick_and_place/2_ros_tcp.md
+27-1Lines changed: 27 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -155,6 +155,8 @@ To enable communication between Unity and ROS, a TCP endpoint running as a ROS n
155
155
156
156
- Replace the `Host Name` value with the IP address of your ROS machine. Ensure that the `Host Port` is set to `10000`.
157
157
158
+
- If you are going to run ROS services with docker container introduced [below](#the-ros-side), fill `Host Name` and `Override Unity IP` with the loopback IP address `127.0.0.1`.
159
+
158
160
1. To call the `Publish()` function, a UI element will be added for user input. In the Hierarchy window, right click to add a new UI > Button. Note that this will create a new Canvas parent as well.
159
161
> Note: In the `Game` view, you will see the button appear in the bottom left corner as an overlay. In `Scene` view the button will be rendered on a canvas object that may not be visible.
160
162
@@ -174,7 +176,31 @@ To enable communication between Unity and ROS, a TCP endpoint running as a ROS n
174
176
175
177
> Note: This project has been tested with Python 2 and ROS Melodic, as well as Python 3 and ROS Noetic.
176
178
177
-
Most of the ROS setup has been provided via the `niryo_moveit` package. This section will describe the `.launch` files and start the necessary ROS nodes for communication.
179
+
Most of the ROS setup has been provided via the `niryo_moveit` package. This section will describe the `.launch` files and start the necessary ROS nodes for communication. Two methods are provideds to launch ROS nodes and services: either using a ROS docker container or doing it manually in your own ROS environment.
Press `Ctrl + C` or `Cmd + C` to terminate the docker container.
202
+
203
+
### Manually Setup ROS
178
204
179
205
1. The provided files require the following packages to be installed. ROS Melodic users should run the following commands if the packages are not already present:
1. IfyouhavenotalreadybuiltandsourcedtheROSworkspacesinceimportingthenewROSpackages, navigatetoyourROSworkplace, e.g. `Unity-Robotics-Hub/tutorials/pick_and_place/ROS/`, run `catkin_make && sourcedevel/setup.bash`. Ensuretherearenoerrors.
0 commit comments