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/0_ros_setup.md
-22Lines changed: 0 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,26 +74,6 @@ The ROS workspace is now ready to accept commands!
74
74
75
75
1. If you have not already built and sourced the ROS workspace since importing the new ROS packages, navigate to your ROS workplace, and run `catkin_make && source devel/setup.bash`. Ensure there are no errors.
76
76
77
-
1. The ROS parameters will need to be set to your configuration in order to allow the server endpoint to fetch values for the TCP connection, stored in `src/niryo_moveit/config/params.yaml`. From your ROS workspace, assign the ROS IP in this `yaml` file:
> Note: You can also manually assign this value by navigating to the `params.yaml` file and opening it for editing.
84
-
85
-
```yaml
86
-
ROS_IP: <your ROS IP>
87
-
```
88
-
89
-
e.g.
90
-
91
-
```yaml
92
-
ROS_IP: 192.168.50.149
93
-
```
94
-
95
-
1. (Optional) By default, the server_endpoint will listen on port 10000, but this is also controlled by a parameter. If you need to change it, you can run the command `rosparam set ROS_TCP_PORT 10000`, replacing 10000 with the desired port number.
96
-
97
77
The ROS workspace is now ready to accept commands!
98
78
99
79
---
@@ -103,8 +83,6 @@ The ROS workspace is now ready to accept commands!
103
83
104
84
- `...failed because unknown error handler name 'rosmsg'` This is due to a bug in an outdated package version. Try running `sudo apt-get update && sudo apt-get upgrade` to upgrade packages.
105
85
106
-
- If the ROS TCP handshake fails (e.g. `ROS-Unity server listening...` printed on the Unity side but no `ROS-Unity Handshake received` on the ROS side), the ROS IP may not have been set correctly in the params.yaml file. Try running `echo "ROS_IP: $(hostname -I)" > src/niryo_moveit/config/params.yaml` in a terminal from your ROS workspace.
Copy file name to clipboardExpand all lines: tutorials/pick_and_place/2_ros_tcp.md
+17-6Lines changed: 17 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -174,14 +174,25 @@ Most of the ROS setup has been provided via the `niryo_moveit` package. This sec
174
174
175
175
> Note: Running `roslaunch` automatically starts [ROS Core](http://wiki.ros.org/roscore) if it is not already running.
176
176
177
-
> Note: This launch file has been copied below for reference. The server_endpoint and trajectory_subscriber nodes are launched from this file, and the ROS params (set up in [Part 0](0_ros_setup.md)) are loaded from this command. The launch files for this project are available in the package's `launch` directory, i.e. `src/niryo_moveit/launch/`.
177
+
> Note: This launch file has been copied below for reference. The server_endpoint and trajectory_subscriber nodes are launched from this file. The launch files for this project are available in the package's `launch` directory, i.e. `src/niryo_moveit/launch/`.
> Note: To use a port other than 10000, or if you want to listen on a more restrictive ip address than 0.0.0.0 (e.g. for security reasons), you can pass those arguments into the roslaunch command like this:
Copy file name to clipboardExpand all lines: tutorials/pick_and_place/4_pick_and_place.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -337,16 +337,19 @@ void Start()
337
337
## Add niryo_moveit Package
338
338
The Niryo One ROS stack is already installed on the robot and only the `niryo_moveit` package will need to be added.
339
339
340
-
1. Update the `niryo_moveit/config/params.yml` file's `ROS_IP` parameter to match that of the Niryo One.
341
-
342
340
1. Copy the `niryo_moveit` package to the `catkin_ws` directory on the Niryo One's catkin workspace at `/home/niryo/catkin_ws` and run the `catkin_make` command.
343
341
344
342
> Using the SCP command to transfer the `niryo_moveit` package might look something like, `scp -r ~/PATH/TO/niryo_moveit niryo@NIRYO_IP_ADDRESS:/home/niryo/catkin_ws/src`
345
343
346
344
# Execution
347
-
1. Use the `part_4.launch` file to setup the ROS params and start the `server_endpoint` and `sim_real_pnp` scripts.
345
+
1. Use the `part_4.launch` file to start the `server_endpoint` and `sim_real_pnp` scripts.
348
346
- `roslaunch niryo_moveit part_4.launch`
349
347
348
+
> Note: As with previous parts, you can configure this launch file with a custom IP address or port:
1. Return to the Unity Editor and press Play. Press the UI Button to send the joint configurations to ROS on the Niryo One, and watch the robot arm move simultaneously in simulation and real life!
Copy file name to clipboardExpand all lines: tutorials/ros_unity_integration/setup.md
+2-28Lines changed: 2 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,38 +24,12 @@ Follow these steps to use ROS (melodic or noetic):
24
24
25
25
```bash
26
26
source devel/setup.bash
27
-
roscore
28
-
```
29
-
30
-
Once ROS Core has started, it will print `started core service [/rosout]` to the terminal window.
31
-
32
-
3. In your previous terminal, run the following command, replacing the `<your IP address>` with your ROS machine's IP or hostname.
33
-
34
-
```bash
35
-
rosparam set ROS_IP <your IP address>
36
-
```
37
-
38
-
- If you're running ROS in a Docker container, you can just use `rosparam set ROS_IP 0.0.0.0`
39
-
- On Linux you can find out your IP address with the command `hostname -I`
40
-
- On MacOS you can find out your IP address with `ipconfig getifaddr en0`
41
-
42
-
6. (Optional) By default, the server_endpoint will listen on port 10000, but this is also controlled by a parameter. If you need to change it, you can run the command `rosparam set ROS_TCP_PORT 10000`, replacing 10000 with the desired port number.
43
-
44
-
7. Start the server endpoint with the following command:
Once the server_endpoint has started, it will print something similar to `[INFO] [1603488341.950794]: Starting server on 192.168.50.149:10000`.
51
31
52
-
> Note, for this tutorial we have illustrated how to do everything manually, but for day-to-day use, we recommend starting the endpoint with a launch file. Replace all the above (including the roscore step) with the following command: `roslaunch ros_tcp_endpoint endpoint.launch`.
53
-
> While using this launch file, your ROS_IP and ROS_TCP_PORT parameters are read from the file src/ros_tcp_endpoint/config/params.yaml. You can edit this file to adjust your settings - for example, this command will set the appropriate IP address for your machine:
> Read more about rosparam YAML options [here](http://wiki.ros.org/rosparam).
57
-
>
58
-
> Read more about the ROS Parameter Server [here](http://wiki.ros.org/Parameter%20Server).
32
+
> Note, By default, the server_endpoint will listen on ip 0.0.0.0 (i.e. allowing all incoming addresses) and port 10000, but these settings are configurable. To override them, you can change the command to `roslaunch ros_tcp_endpoint endpoint.launch tcp_ip:=127.0.0.1 tcp_port:=10000` (obviously replacing 127.0.0.1 with your desired IP and 10000 with your desired port number.)
0 commit comments