Skip to content

Commit fadf553

Browse files
authored
Merge branch 'master' into movec_movep
2 parents a6ecd7c + daed243 commit fadf553

File tree

9 files changed

+80
-14
lines changed

9 files changed

+80
-14
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ jobs:
112112
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
113113
- name: Setup Bats and bats libs
114114
id: setup-bats
115-
uses: bats-core/[email protected].0
115+
uses: bats-core/[email protected].1
116116
- name: Install Ruby dependencies
117117
run: bundle update --bundler && bundle install
118118
- name: Run unittests

doc/examples/freedrive.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ section will keep freedrive mode active for a period of time defined in ``second
5656
:start-at: std::chrono::duration<double> time_done(0);
5757
:end-before: sendFreedriveMessageOrDie(control::FreedriveControlMessage::FREEDRIVE_STOP);
5858

59-
Stop force Mode
60-
---------------
59+
Stop freedrive Mode
60+
-------------------
6161

62-
To stop force mode either stop sending keepalive signals or request deactivating it explicitly:
62+
To stop freedrive mode either stop sending keepalive signals or request deactivating it explicitly:
6363

6464
.. literalinclude:: ../../examples/freedrive_example.cpp
6565
:language: c++
117 KB
Loading
79.3 KB
Loading
95.2 KB
Loading
83.9 KB
Loading
86 KB
Loading

doc/setup/robot_setup.rst

Lines changed: 58 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,65 @@ application.
205205

206206
.. group-tab:: PolyScope X
207207

208+
The latest release can be downloaded from `GitHub (URCapX)
209+
<https://github.com/UniversalRobots/Universal_Robots_ExternalControl_URCapX/releases>`_.
210+
211+
To install it you first have to copy it to a USB stick and plug that into the robot's teach
212+
pendant.
213+
214+
On the welcome screen click on the hamburger menu in the top-left corner and select *System
215+
Manager* to enter the robot's setup. There select *URCaps* to enter the URCaps installation
216+
screen. You'll have to press *unlock* and enter the admin password to be able to install new
217+
URCaps.
218+
219+
220+
.. image:: ../images/initial_setup_images/px_01_welcome.png
221+
:target: initial_setup_images/px_01_welcome.png
222+
:alt: Welcome screen of a PolyScope X robot
223+
224+
225+
There, click the "+URCap" button at the top-right to open the file selector. There you should see
226+
all urcap files stored on a plugged USB drive. Select and open
227+
the **external-control-X.Y.Z.urcapx** file and click *Confirm*. A popup should ask you to
228+
confirm the installation.
229+
230+
.. image:: ../images/initial_setup_images/px_05_urcaps_installed.png
231+
:target: initial_setup_images/px_05_urcaps_installed.png
232+
:alt: URCaps screen with installed urcaps
233+
234+
Upon confirmation, the external-control URCap should be listed as installed.
235+
236+
After the robot rebooted you should find the **External Control** URCapX on the *Application*
237+
Screen. If you open it, you will get to its configuration screen.
238+
239+
.. image:: ../images/initial_setup_images/px_07_installation_excontrol.png
240+
:target: initial_setup_images/px_07_installation_excontrol.png
241+
:alt: Configuration screen of External Control URCapX
242+
243+
244+
Here you'll have to setup the IP address of the external PC which will be running the remote
245+
application. Note that the robot and the external PC have to be in the same network, ideally in a
246+
direct connection with each other to minimize network disturbances. The custom port should be left
247+
untouched for now.
248+
249+
To use the new URCaps, create a new program and insert the **External Control** program node into
250+
the program tree
251+
252+
.. image:: ../images/initial_setup_images/px_10_prog_structure_urcaps.png
253+
:target: initial_setup_images/px_10_prog_structure_urcaps.png
254+
:alt: Insert the external control node
255+
256+
257+
.. image:: ../images/initial_setup_images/px_11_program_view_excontrol.png
258+
:target: initial_setup_images/px_11_program_view_excontrol.png
259+
:alt: Program view of external control
260+
261+
262+
If you select the External Control program node, you'll see a button "Update program"
263+
appearing next to it. With the external application started, press it to receive the script
264+
code.
265+
208266
.. warning::
209267

210268
Support for PolyScope X isn't fully developed, yet. Please consider using External Control
211269
with PolyScope X as an open beta.
212-
213-
For details on installing the External Control URCapX, please see https://github.com/UniversalRobots/Universal_Robots_ExternalControl_URCapX

scripts/start_ursim.sh

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# POSSIBILITY OF SUCH DAMAGE.
3030

3131
PERSISTENT_BASE="${HOME}/.ursim"
32-
URCAP_VERSION="1.0.5"
32+
URCAP_VERSION="" # If not set, the latest version will be downloaded
3333
IP_ADDRESS="192.168.56.101"
3434
PORT_FORWARDING_WITH_DASHBOARD="-p 30001-30004:30001-30004 -p 29999:29999"
3535
PORT_FORWARDING_WITHOUT_DASHBOARD="-p 30001-30004:30001-30004"
@@ -214,6 +214,14 @@ post_setup_e-series()
214214

215215
post_setup_polyscopex()
216216
{
217+
urcapx_download_url=$(curl -s https://api.github.com/repos/UniversalRobots/Universal_Robots_ExternalControl_URCapX/releases/latest | grep "browser_download_url.*urcapx" | cut -d ":" -f 2,3 | tr -d "\"[:space:]")
218+
URCAPX_VERSION=$(echo "$urcapx_download_url" | grep -oP '\d+\.\d+\.\d+' | head -n 1)
219+
mkdir -p "${URCAP_STORAGE}"
220+
urcapx_file="${URCAP_STORAGE}/external_control-$URCAPX_VERSION.urcapx"
221+
if [[ ! -f "$urcapx_file" ]]; then
222+
echo "Downloading External Control URCapX version ${URCAPX_VERSION}"
223+
curl -L -o "$urcapx_file" "$urcapx_download_url"
224+
fi
217225

218226
echo -ne "Starting URSim. Waiting for UrService to be up..."
219227
curl_cmd="curl --retry-connrefused -f --write-out %{http_code} --silent --output /dev/null $IP_ADDRESS/universal-robots/urservice/api/v1/urcaps"
@@ -228,11 +236,9 @@ post_setup_polyscopex()
228236

229237
echo ""; echo "UrService is up"
230238

231-
# TODO: Once we have a downloadable URCapX, we can use the following code to install it
232-
#urcapx_file="${HOME}/Downloads/external-control-0.1.0.urcapx"
233-
#echo "Installing URCapX $urcapx_file"
234-
#curl --location --request POST --silent --output /dev/null "$IP_ADDRESS/universal-robots/urservice/api/v1/urcaps" --form urcapxFile=@"${urcapx_file}"
235-
#echo "";
239+
echo "Installing URCapX $urcapx_file"
240+
curl --location --request POST --silent --output /dev/null "$IP_ADDRESS/universal-robots/urservice/api/v1/urcaps" --form urcapxFile=@"${urcapx_file}"
241+
echo "";
236242

237243
echo -e "\nTo access PolyScopeX, open the following URL in a web browser."
238244
printf "\n\n\thttp://%s\n\n" "$IP_ADDRESS"
@@ -377,9 +383,13 @@ main() {
377383
PROGRAM_STORAGE=$(realpath "$PROGRAM_STORAGE")
378384

379385
# Download external_control URCap
386+
if [[ -z "$URCAP_VERSION" ]]; then
387+
urcap_download_url=$(curl -s https://api.github.com/repos/UniversalRobots/Universal_Robots_ExternalControl_URCap/releases/latest | grep "browser_download_url.*jar" | cut -d ":" -f 2,3 | tr -d "\"[:space:]")
388+
URCAP_VERSION=$(echo "$urcap_download_url" | grep -oP '\d+\.\d+\.\d+' | head -n 1)
389+
fi
380390
if [[ ! -f "${URCAP_STORAGE}/externalcontrol-${URCAP_VERSION}.jar" ]]; then
381-
curl -L -o "${URCAP_STORAGE}/externalcontrol-${URCAP_VERSION}.jar" \
382-
"https://github.com/UniversalRobots/Universal_Robots_ExternalControl_URCap/releases/download/v${URCAP_VERSION}/externalcontrol-${URCAP_VERSION}.jar"
391+
echo "Downloading and installing External Control URCap version ${URCAP_VERSION}"
392+
curl -L -o "${URCAP_STORAGE}/externalcontrol-${URCAP_VERSION}.jar" "$urcap_download_url"
383393
fi
384394
docker_cmd="docker run --rm -d --net ursim_net --ip $IP_ADDRESS\
385395
-v ${URCAP_STORAGE}:/urcaps \

0 commit comments

Comments
 (0)