Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
abb_egm_driver
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Weber
abb_egm_driver
Commits
fa7546a1
Commit
fa7546a1
authored
Feb 1, 2021
by
Jan Weber
Browse files
Options
Downloads
Patches
Plain Diff
Error when reinitializing the EGM interface fixed
parent
9cccfcf4
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
abb_egm_driver/scripts/driver_test_node.py
+1
-1
1 addition, 1 deletion
abb_egm_driver/scripts/driver_test_node.py
abb_egm_driver/src/abb_egm_robot_node.cpp
+9
-4
9 additions, 4 deletions
abb_egm_driver/src/abb_egm_robot_node.cpp
with
10 additions
and
5 deletions
abb_egm_driver/scripts/driver_test_node.py
+
1
−
1
View file @
fa7546a1
...
@@ -131,7 +131,7 @@ def circle(move_group, robot):
...
@@ -131,7 +131,7 @@ def circle(move_group, robot):
# switched to motion streaming mode when positions are streamed to the robot afterwards.
# switched to motion streaming mode when positions are streamed to the robot afterwards.
jtp
=
trajectory_msgs
.
msg
.
JointTrajectoryPoint
()
jtp
=
trajectory_msgs
.
msg
.
JointTrajectoryPoint
()
jtp
.
positions
=
move_group
.
get_current_joint_values
()
jtp
.
positions
=
move_group
.
get_current_joint_values
()
for
_
in
range
(
1
0
):
for
_
in
range
(
2
0
):
joint_command_publisher
.
publish
(
jtp
)
joint_command_publisher
.
publish
(
jtp
)
rospy
.
sleep
(
0.1
)
rospy
.
sleep
(
0.1
)
...
...
This diff is collapsed.
Click to expand it.
abb_egm_driver/src/abb_egm_robot_node.cpp
+
9
−
4
View file @
fa7546a1
...
@@ -261,13 +261,18 @@ int main(int argc, char** argv)
...
@@ -261,13 +261,18 @@ int main(int argc, char** argv)
// Create the RWS interface
// Create the RWS interface
if
(
!
egm_interface
)
if
(
!
egm_interface
)
{
{
egm_interface
=
new
AbbEgmInterface
();
// Create and initialize the EGM interface. If it fails, delate the interface, restart RAPID and try again.
// Initialize the EGM interface. If it fails, restart RAPID and try again.
// After switching on the robot controller, it often happens that the initialization fails.
// After switching on the robot controller, it often happens that the initialization fails.
// This can be fixed by restarting RAPID.
// This can be fixed by restarting RAPID.
if
(
!
egm_interface
->
init
())
restartRapid
(
rws_interface
);
egm_interface
=
new
AbbEgmInterface
();
if
(
!
egm_interface
->
init
())
{
delete
egm_interface
;
restartRapid
(
rws_interface
);
egm_interface
=
new
AbbEgmInterface
();
if
(
!
egm_interface
->
init
())
break
;
if
(
!
egm_interface
->
init
())
break
;
}
}
}
// Create the Robot interface
// Create the Robot interface
if
(
!
robot_interface
)
if
(
!
robot_interface
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment