@@ -7,35 +7,75 @@ Apart from being used with a real robot, the ROS driver can be used with ros2_co
77
88Additionally, the robot can be simulated using
99`Gazebo Classic <https://github.com/UniversalRobots/Universal_Robots_ROS2_Gazebo_Simulation >`_ or
10- `GZ Sim <https://github.com/UniversalRobots/Universal_Robots_ROS2_Ignition_Simulation >`_ but that's
10+ :ref: `GZ Sim <ur_simulation_gz >` but that's
1111outside of this driver's scope.
1212
1313.. _usage_with_official_ur_simulator :
1414
1515Usage with official UR simulator
1616--------------------------------
1717
18- The easiest way to use URSim is the `Docker
19- image <https://hub.docker.com/r/universalrobots/ursim_e-series> `_ provided by Universal Robots (See
20- `this link <https://hub.docker.com/r/universalrobots/ursim_cb3 >`_ for a CB3-series image).
18+ The easiest way to use URSim is the Docker
19+ image provided by Universal Robots. There is an image for each software generation:
2120
22- To start it, we've prepared a script:
21+ - `PolyScope 5 <https://hub.docker.com/r/universalrobots/ursim_e-series >`_
22+ - `PolyScope X <https://hub.docker.com/r/universalrobots/ursim_polyscopex >`_
23+ - `CB3 <https://hub.docker.com/r/universalrobots/ursim_cb3 >`_
24+
25+ We have prepared a script to unify the startup of the simulator independent of the software
26+ platform version:
2327
2428.. code-block :: bash
2529
26- ros2 run ur_client_library start_ursim.sh -m < ur_type>
30+ ros2 run ur_client_library start_ursim.sh -m < ur_type> -v < ursim_version>
31+
32+ If you skip the ``-v `` option, the script will use the latest version of the PolyScope 5 URSim
33+ image. If you skip the ``-m `` option, the robot model will default to a UR5(e) robot.
34+
35+ **Example: **
36+
37+ .. code-block :: console
38+
39+ $ ros2 run ur_client_library start_ursim.sh -v 10.8.0 -m ur20
40+ ROBOT_MODEL: ur20
41+ ROBOT_SERIES: polyscopex
42+ URSIM_VERSION: 10.8.0
43+ 5b140a83f8600c7ada0b7d75bc7a5808667adbeec77387e8c73b093f10fd2379
44+ Starting URSim. Waiting for UrService to be up...................................
45+ UrService is up
46+ Installing URCapX /home/feex/.ursim/polyscopex/urcaps/external-control-0.1.0.urcapx
47+
48+
49+ To access PolyScopeX, open the following URL in a web browser.
50+
51+
52+ http://192.168.56.101
53+
54+ To exit, press CTRL+C
55+
56+
57+ Accessing the URSim GUI is done using a web browser. The script will print the URL to access the
58+ GUI. Depending on the PolyScope version, this is different.
59+
60+ .. tabs ::
61+
62+ .. group-tab :: PolyScope 5 / CB3
63+
64+ Open http://192.168.56.101:6080/vnc.html in a web browser.
65+
66+ .. group-tab :: PolyScope X
67+
68+ Open http://192.168.56.101 in a web browser.
2769
2870With this, we can spin up a driver using
2971
3072.. code-block :: bash
3173
3274 ros2 launch ur_robot_driver ur_control.launch.py ur_type:=< ur_type> robot_ip:=192.168.56.101 launch_rviz:=true
3375
34- You can view the polyscope GUI by opening `<http://192.168.56.101:6080/vnc.html >`_.
35-
3676 When we now move the robot in Polyscope, the robot's RViz visualization should move accordingly.
3777
38- For details on the Docker image, please see the more detailed guide :ref: `here <ursim_docker >`.
78+ For details on the (PolyScopr 5 and CB3) Docker image, please see the more detailed guide :ref: `here <ursim_docker >`.
3979
4080Mock hardware
4181-------------
0 commit comments