Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RobotAPI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lennard Hofmann
RobotAPI
Commits
72355f70
Commit
72355f70
authored
9 years ago
by
Philipp Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
Gui now displays calculation error of IKSolver
parent
a6d5b4e6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
source/RobotAPI/gui-plugins/RobotIKPlugin/RobotIKGuiPlugin.cpp
+8
-0
8 additions, 0 deletions
...e/RobotAPI/gui-plugins/RobotIKPlugin/RobotIKGuiPlugin.cpp
source/RobotAPI/gui-plugins/RobotIKPlugin/RobotIKGuiPlugin.ui
+27
-0
27 additions, 0 deletions
...ce/RobotAPI/gui-plugins/RobotIKPlugin/RobotIKGuiPlugin.ui
with
35 additions
and
0 deletions
source/RobotAPI/gui-plugins/RobotIKPlugin/RobotIKGuiPlugin.cpp
+
8
−
0
View file @
72355f70
...
...
@@ -150,6 +150,9 @@ void armarx::RobotIKWidgetController::onDisconnectComponent()
this
->
ui
.
reachableLabel
->
setEnabled
(
false
);
this
->
ui
.
reachableLabel
->
setText
(
QString
::
fromStdString
(
"No kinematic chain selected"
));
this
->
ui
.
reachableLabel
->
setStyleSheet
(
"QLabel { color : red; }"
);
this
->
ui
.
errorValue
->
setEnabled
(
false
);
this
->
ui
.
errorValue
->
setText
(
QString
::
fromStdString
(
"Calculated error: 0"
));
this
->
ui
.
errorValue
->
setEnabled
(
false
);
this
->
ui
.
pushButton
->
setEnabled
(
false
);
this
->
ui
.
currentPose
->
setEnabled
(
false
);
this
->
ui
.
currentPoseMatrix
->
setEnabled
(
false
);
...
...
@@ -238,6 +241,8 @@ void armarx::RobotIKWidgetController::kinematicChainChanged(const QString &arg1)
this
->
ui
.
reachableLabel
->
setEnabled
(
true
);
this
->
ui
.
reachableLabel
->
setText
(
QString
::
fromStdString
(
"Pose reachable!"
));
this
->
ui
.
reachableLabel
->
setStyleSheet
(
"QLabel { color : green; }"
);
this
->
ui
.
errorValue
->
setText
(
QString
::
fromStdString
(
"Calculated error: 0"
));
this
->
ui
.
errorValue
->
setEnabled
(
true
);
this
->
ui
.
pushButton
->
setEnabled
(
true
);
this
->
ui
.
currentPose
->
setEnabled
(
true
);
this
->
ui
.
currentPoseMatrix
->
setEnabled
(
true
);
...
...
@@ -389,6 +394,9 @@ void armarx::RobotIKWidgetController::manipFinishCallback(void* data, SoDragger*
controller
->
ui
.
reachableLabel
->
setStyleSheet
(
"QLabel { color : red; }"
);
controller
->
ui
.
pushButton
->
setEnabled
(
false
);
}
//Display calculated error
controller
->
ui
.
errorValue
->
setText
(
QString
::
fromStdString
(
"Calculated error: "
+
boost
::
lexical_cast
<
std
::
string
>
(
targetJointAngles
.
error
)));
}
void
armarx
::
RobotIKWidgetController
::
robotUpdateTimerCB
(
void
*
data
,
SoSensor
*
sensor
)
...
...
This diff is collapsed.
Click to expand it.
source/RobotAPI/gui-plugins/RobotIKPlugin/RobotIKGuiPlugin.ui
+
27
−
0
View file @
72355f70
...
...
@@ -117,6 +117,33 @@
</property>
</widget>
</item>
<item>
<widget
class=
"QLabel"
name=
"errorValue"
>
<property
name=
"enabled"
>
<bool>
false
</bool>
</property>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Maximum"
vsizetype=
"Maximum"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
<property
name=
"font"
>
<font>
<pointsize>
15
</pointsize>
</font>
</property>
<property
name=
"text"
>
<string>
Calculated error: 0
</string>
</property>
<property
name=
"textFormat"
>
<enum>
Qt::AutoText
</enum>
</property>
<property
name=
"scaledContents"
>
<bool>
false
</bool>
</property>
</widget>
</item>
<item>
<widget
class=
"QPushButton"
name=
"pushButton"
>
<property
name=
"enabled"
>
...
...
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