urua 0.99.4447 → 0.99.5000
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/urua.rb +9 -3
- data/server/devserver.conf +17 -0
- data/server/devserver.rb +13 -0
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf7aa8a06159f78f2374cd771d0f2028963d7276d879df878e778e30e5076bfe
|
4
|
+
data.tar.gz: 66b2c863d5b5c28f64dc953ce2826ced664c029e40213ebf3bb42b1dfe0f5450
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef32386ec69bb1605ac242d0b849b02a6f2bb96b34f9c6284cd4441d39508b59759fb21846f5d21aa730ecb93e139191b20d4ab756a755da4d9716afb435d512
|
7
|
+
data.tar.gz: cbf0db9abf68997f387141b7a26581f3139e992728de8550bffe10f7af1526f527fd5f280413090d7573ab5a7c3f7b2f6bc43d467181486275c2c5bf87510f59
|
data/lib/urua.rb
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
require 'daemonite'
|
2
2
|
require 'opcua/server'
|
3
|
-
|
3
|
+
if $dev
|
4
|
+
require_relative '../../ur-sock/lib/ur-sock'
|
5
|
+
else
|
6
|
+
require 'ur-sock'
|
7
|
+
end
|
4
8
|
require 'net/ssh'
|
5
9
|
require 'net/scp'
|
6
10
|
|
@@ -28,8 +32,8 @@ module URUA
|
|
28
32
|
### Loading config file
|
29
33
|
conf = UR::XMLConfigFile.new opts['rtde_config']
|
30
34
|
output_names, output_types = conf.get_recipe opts['rtde_config_recipe_base']
|
31
|
-
|
32
35
|
opts['rtde'] = UR::Rtde.new(opts['ipadress']).connect
|
36
|
+
|
33
37
|
### Set Speed to very slow
|
34
38
|
if opts['rtde_config_recipe_speed']
|
35
39
|
speed_names, speed_types = conf.get_recipe opts['rtde_config_recipe_speed']
|
@@ -145,7 +149,7 @@ module URUA
|
|
145
149
|
rt = opts['server'].types.add_object_type(:RobotType).tap { |r|
|
146
150
|
r.add_variables :SerialNumber, :RobotModel
|
147
151
|
r.add_object(:State, opts['server'].types.folder).tap{ |s|
|
148
|
-
s.add_variables :CurrentProgram, :RobotMode, :RobotState, :JointMode, :SafetyMode, :ToolMode, :ProgramState, :SpeedScaling, :Remote
|
152
|
+
s.add_variables :CurrentProgram, :RobotMode, :RobotState, :JointMode, :SafetyMode, :ToolMode, :ProgramState, :SpeedScaling, :Remote, :OperationalMode
|
149
153
|
s.add_variable_rw :Override
|
150
154
|
}
|
151
155
|
r.add_object(:SafetyBoard, opts['server'].types.folder).tap{ |r|
|
@@ -251,6 +255,7 @@ module URUA
|
|
251
255
|
opts['ov'] = st.find(:Override)
|
252
256
|
opts['ss'] = st.find(:SpeedScaling)
|
253
257
|
opts['mo'] = st.find(:Remote)
|
258
|
+
opts['op'] = st.find(:OperationalMode)
|
254
259
|
|
255
260
|
### Axes
|
256
261
|
axes = robot.manifest(:Axes, ax)
|
@@ -322,6 +327,7 @@ module URUA
|
|
322
327
|
opts['rs'].value = opts['dash'].get_program_state
|
323
328
|
# update remote control state from dashboard server
|
324
329
|
opts['mo'].value = opts['dash'].is_in_remote_control
|
330
|
+
opts['op'].value = opts['dash'].get_operational_mode
|
325
331
|
end
|
326
332
|
|
327
333
|
if Time.now.to_i - 10 > opts['doit_progs']
|
@@ -0,0 +1,17 @@
|
|
1
|
+
### OPC UA specific config
|
2
|
+
### --------------------------------------------------------------------------
|
3
|
+
namespace: https://centurio.work/ur10evva
|
4
|
+
|
5
|
+
### UR specific config
|
6
|
+
### --------------------------------------------------------------------------
|
7
|
+
ipadress: 192.168.1.26
|
8
|
+
username: ur
|
9
|
+
password: easybot
|
10
|
+
url: /programs
|
11
|
+
|
12
|
+
### UR simulation specific config
|
13
|
+
### --------------------------------------------------------------------------
|
14
|
+
### if no password, password has to entered when server is started
|
15
|
+
# ipadress: localhost
|
16
|
+
# username: myusername
|
17
|
+
# url: /home/myusername/somedirectory/ursim-current/programs.UR10
|
data/server/devserver.rb
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
$dev = true
|
3
|
+
require_relative '../lib/urua'
|
4
|
+
### add stuff if necessary
|
5
|
+
|
6
|
+
Thread.abort_on_exception=true
|
7
|
+
|
8
|
+
Daemonite.new do |opts|
|
9
|
+
### add or replace building blocks if necessary
|
10
|
+
use URUA::implementation_startup(opts)
|
11
|
+
use URUA::implementation_run
|
12
|
+
use URUA::implementation_exit
|
13
|
+
end.loop!
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: urua
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.99.
|
4
|
+
version: 0.99.5000
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Pauker
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: tools
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-05
|
12
|
+
date: 2020-06-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: opcua
|
@@ -31,14 +31,14 @@ dependencies:
|
|
31
31
|
requirements:
|
32
32
|
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: '0
|
34
|
+
version: '1.0'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: '0
|
41
|
+
version: '1.0'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: daemonite
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,6 +66,8 @@ files:
|
|
66
66
|
- README.md
|
67
67
|
- Rakefile
|
68
68
|
- lib/urua.rb
|
69
|
+
- server/devserver.conf
|
70
|
+
- server/devserver.rb
|
69
71
|
- server/uruaserver.conf
|
70
72
|
- server/uruaserver.rb
|
71
73
|
- tools/urua
|