Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bigprint
twins-controller
Commits
b06e7e02
Commit
b06e7e02
authored
Jan 29, 2021
by
Jayant Khatkar
Browse files
add extrusion for r2 (
#5
)
parent
c26561a1
Changes
3
Show whitespace changes
Inline
Side-by-side
README.md
View file @
b06e7e02
...
@@ -80,3 +80,14 @@ roslaunch ur5_e_moveit_config demo.launch
...
@@ -80,3 +80,14 @@ roslaunch ur5_e_moveit_config demo.launch
cd
src
cd
src
ipython
-i
main.py
ipython
-i
main.py
```
```
### Debugging
##### Extrusion Port
Make sure the Extrusion port is set to the correct address. If There is a permission denied
error, you will need to change the permissions for 'Others' to match the following:
```
crw-rw-rw- 1 root dialout 166, 0 Jan 29 12:21 /dev/ttyACM0 # This works
crw-rw---- 1 root dialout 166, 1 Jan 29 12:20 /dev/ttyACM1 # This doesn't
```
launch/r2_bringup.launch
View file @
b06e7e02
...
@@ -16,9 +16,9 @@
...
@@ -16,9 +16,9 @@
<!-- EXTRUDER NODE-->
<!-- EXTRUDER NODE-->
<node
if=
"$(arg extrude)"
<node
if=
"$(arg extrude)"
pkg=
"extrudex"
pkg=
"extrudex"
name=
"r
1
_extruder"
name=
"r
2
_extruder"
type=
"extruder_node.py"
type=
"extruder_node.py"
args=
"/dev/ttyACM
0
"
args=
"/dev/ttyACM
1
"
output=
"screen"
/>
output=
"screen"
/>
</launch>
</launch>
src/KeyboardController.py
View file @
b06e7e02
...
@@ -595,12 +595,13 @@ class KeyboardController(Controller):
...
@@ -595,12 +595,13 @@ class KeyboardController(Controller):
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
#con = KeyboardController(disableExtruder=True)
#con = KeyboardController(disableExtruder=True)
con
1
=
KeyboardController
(
disableExtruder
=
True
,
robot
=
1
)
con
=
KeyboardController
()
con
2
=
KeyboardController
(
disableExtruder
=
True
,
robot
=
2
)
#
con
1
= KeyboardController(disableExtruder=True, robot=
1
)
#con = KeyboardController()
#con
2
= KeyboardController(
disableExtruder=True, robot=2
)
print
(
'Collecting configrations...'
)
print
(
'Collecting configrations...'
)
configuations
=
con1
.
prompt_configurations
()
configuations
=
con
.
prompt_configurations
()
configuations
=
con2
.
prompt_configurations
()
#configuations = con1.prompt_configurations()
#configuations = con2.prompt_configurations()
print
(
'Your configurations:'
)
print
(
'Your configurations:'
)
print
(
configuations
)
print
(
configuations
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment