Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sot-talos-balance
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Guilhem Saurel
sot-talos-balance
Commits
49117284
Commit
49117284
authored
6 years ago
by
François Bailly
Browse files
Options
Downloads
Patches
Plain Diff
added compatiblilty with signal-helper of dynamic-graph
parent
8b6e94cb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
Loading
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/sot/talos_balance/control-manager.hh
+1
-1
1 addition, 1 deletion
include/sot/talos_balance/control-manager.hh
src/control-manager.cpp
+14
-14
14 additions, 14 deletions
src/control-manager.cpp
with
15 additions
and
15 deletions
include/sot/talos_balance/control-manager.hh
+
1
−
1
View file @
49117284
...
...
@@ -39,7 +39,7 @@
#include
<sot/talos_balance/utils/signal-helper.hh>
#include
<sot/talos_balance/utils/vector-conversions.hh>
#include
<sot/talos_balance/utils/logger.hh>
#include
<sot/
talos_balanc
e/robot-utils.hh>
#include
<sot/
cor
e/robot-utils.hh>
#include
<map>
#include
"boost/assign.hpp"
...
...
This diff is collapsed.
Click to expand it.
src/control-manager.cpp
+
14
−
14
View file @
49117284
...
...
@@ -45,9 +45,9 @@ namespace dynamicgraph
#define PROFILE_PWM_DESIRED_COMPUTATION "Control manager "
#define PROFILE_DYNAMIC_GRAPH_PERIOD "Control period "
#define INPUT_SIGNALS
m_
i_maxSIN <<
m_
u_maxSIN <<
m_
tau_maxSIN << \
m_
tauSIN <<
m_
tau_predictedSIN <<
m_
i_measuredSIN
#define OUTPUT_SIGNALS
m_
uSOUT <<
m_
u_safeSOUT
#define INPUT_SIGNALS i_maxSIN << u_maxSIN << tau_maxSIN << \
tauSIN << tau_predictedSIN << i_measuredSIN
#define OUTPUT_SIGNALS uSOUT << u_safeSOUT
/// Define EntityClassName here rather than in the header file
/// so that it can be used by the macros DEFINE_SIGNAL_**_FUNCTION.
...
...
@@ -69,9 +69,9 @@ namespace dynamicgraph
,
CONSTRUCT_SIGNAL_IN
(
i_max
,
dynamicgraph
::
Vector
)
,
CONSTRUCT_SIGNAL_IN
(
u_max
,
dynamicgraph
::
Vector
)
,
CONSTRUCT_SIGNAL_IN
(
tau_max
,
dynamicgraph
::
Vector
)
,
CONSTRUCT_SIGNAL_OUT
(
u
,
dynamicgraph
::
Vector
,
m_
i_measuredSIN
)
,
CONSTRUCT_SIGNAL_OUT
(
u
,
dynamicgraph
::
Vector
,
i_measuredSIN
)
,
CONSTRUCT_SIGNAL_OUT
(
u_safe
,
dynamicgraph
::
Vector
,
INPUT_SIGNALS
<<
m_
uSOUT
)
uSOUT
)
,
m_robot_util
(
RefVoidRobotUtil
())
,
m_initSucceeded
(
false
)
,
m_emergency_stop_triggered
(
false
)
...
...
@@ -305,13 +305,13 @@ namespace dynamicgraph
return
s
;
}
const
dynamicgraph
::
Vector
&
u
=
m_
uSOUT
(
iter
);
const
dynamicgraph
::
Vector
&
tau_max
=
m_
tau_maxSIN
(
iter
);
const
dynamicgraph
::
Vector
&
ctrl_max
=
m_
u_maxSIN
(
iter
);
const
dynamicgraph
::
Vector
&
i_max
=
m_
i_maxSIN
(
iter
);
const
dynamicgraph
::
Vector
&
tau
=
m_
tauSIN
(
iter
);
const
dynamicgraph
::
Vector
&
i_real
=
m_
i_measuredSIN
(
iter
);
const
dynamicgraph
::
Vector
&
tau_predicted
=
m_
tau_predictedSIN
(
iter
);
const
dynamicgraph
::
Vector
&
u
=
uSOUT
(
iter
);
const
dynamicgraph
::
Vector
&
tau_max
=
tau_maxSIN
(
iter
);
const
dynamicgraph
::
Vector
&
ctrl_max
=
u_maxSIN
(
iter
);
const
dynamicgraph
::
Vector
&
i_max
=
i_maxSIN
(
iter
);
const
dynamicgraph
::
Vector
&
tau
=
tauSIN
(
iter
);
const
dynamicgraph
::
Vector
&
i_real
=
i_measuredSIN
(
iter
);
const
dynamicgraph
::
Vector
&
tau_predicted
=
tau_predictedSIN
(
iter
);
for
(
int
i
=
0
;
i
<
m_emergencyStopSIN
.
size
();
i
++
)
{
...
...
@@ -389,7 +389,7 @@ namespace dynamicgraph
// register the new signals and add the new signal dependecy
Eigen
::
VectorXd
::
Index
i
=
m_ctrlModes
.
size
()
-
1
;
m_
uSOUT
.
addDependency
(
*
m_ctrlInputsSIN
[
i
]);
uSOUT
.
addDependency
(
*
m_ctrlInputsSIN
[
i
]);
Entity
::
signalRegistration
(
*
m_ctrlInputsSIN
[
i
]);
Entity
::
signalRegistration
(
*
m_jointsCtrlModesSOUT
[
i
]);
updateJointCtrlModesOutputSignal
();
...
...
@@ -501,7 +501,7 @@ namespace dynamicgraph
// register the new signals and add the new signal dependecy
unsigned
int
i
=
m_emergencyStopSIN
.
size
()
-
1
;
m_
u_safeSOUT
.
addDependency
(
*
m_emergencyStopSIN
[
i
]);
u_safeSOUT
.
addDependency
(
*
m_emergencyStopSIN
[
i
]);
Entity
::
signalRegistration
(
*
m_emergencyStopSIN
[
i
]);
}
...
...
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