Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gz_gep_tools
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Olivier Stasse
gz_gep_tools
Commits
a46c2a90
Commit
a46c2a90
authored
2 weeks ago
by
Olivier Stasse
Browse files
Options
Downloads
Patches
Plain Diff
[control_loop] Fix the gains for H1.
parent
13df4a58
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/control_loop.cc
+28
-28
28 additions, 28 deletions
tools/control_loop.cc
with
28 additions
and
28 deletions
tools/control_loop.cc
+
28
−
28
View file @
a46c2a90
...
@@ -87,33 +87,33 @@ int main(int argc, char **argv)
...
@@ -87,33 +87,33 @@ int main(int argc, char **argv)
};
};
gz_transport_hw_tools
::
RobotCtrlJointInfos
h1_2_ctrl_joint_infos
{
gz_transport_hw_tools
::
RobotCtrlJointInfos
h1_2_ctrl_joint_infos
{
{
"left_shoulder_pitch_joint"
,
ControlJointValue
(
0.0
,
0.0
,
0
.0
,
0
.0
,
0.0
,
0.0
)
},
{
"left_shoulder_pitch_joint"
,
ControlJointValue
(
1000
0.0
,
0.0
1
,
1
.0
,
14
.0
,
0.0
,
0.0
)
},
{
"left_shoulder_roll_joint"
,
ControlJointValue
(
0.0
,
0.0
,
0
.0
,
0
.0
,
0.0
,
0.0
)
},
{
"left_shoulder_roll_joint"
,
ControlJointValue
(
1000
0.0
,
0.0
1
,
1
.0
,
14
.0
,
0.0
,
0.0
)
},
{
"left_shoulder_yaw_joint"
,
ControlJointValue
(
0.0
,
0.0
,
0
.0
,
0
.0
,
0.0
,
0.0
)
},
{
"left_shoulder_yaw_joint"
,
ControlJointValue
(
500
0.0
,
0.0
,
1
.0
,
9
.0
,
0.0
,
0.0
)
},
{
"left_elbow_joint"
,
ControlJointValue
(
0.0
,
0.0
,
0
.0
,
0
.0
,
0.0
,
0.0
)
},
{
"left_elbow_joint"
,
ControlJointValue
(
500
0.0
,
0.0
,
1
.0
,
9
.0
,
0.0
,
0.0
)
},
{
"left_wrist_roll_joint"
,
ControlJointValue
(
0.0
,
0
.0
,
0.
0
,
0
.0
,
0.0
,
0.0
)
},
{
"left_wrist_roll_joint"
,
ControlJointValue
(
50
0.0
,
1
.0
,
0.
1
,
5
.0
,
0.0
,
0.0
)
},
{
"left_wrist_pitch_joint"
,
ControlJointValue
(
0.0
,
0
.0
,
0.
0
,
0
.0
,
0.0
,
0.0
)
},
{
"left_wrist_pitch_joint"
,
ControlJointValue
(
50
0.0
,
1
.0
,
0.
1
,
5
.0
,
0.0
,
0.0
)
},
{
"left_wrist_yaw_joint"
,
ControlJointValue
(
0.0
,
0
.0
,
0.
0
,
0
.0
,
0.0
,
0.0
)
},
{
"left_wrist_yaw_joint"
,
ControlJointValue
(
50
0.0
,
1
.0
,
0.
1
,
3
.0
,
0.0
,
0.0
)
},
{
"right_shoulder_pitch_joint"
,
ControlJointValue
(
0.0
,
0.0
,
0
.0
,
0.0
,
0.0
,
0.0
)
},
{
"right_shoulder_pitch_joint"
,
ControlJointValue
(
1000
0.0
,
0.0
1
,
1
.0
,
0.0
,
0.0
,
0.0
)
},
{
"right_shoulder_roll_joint"
,
ControlJointValue
(
0.0
,
0.0
,
0
.0
,
0.0
,
0.0
,
0.0
)
},
{
"right_shoulder_roll_joint"
,
ControlJointValue
(
1000
0.0
,
0.0
1
,
1
.0
,
0.0
,
0.0
,
0.0
)
},
{
"right_shoulder_yaw_joint"
,
ControlJointValue
(
0.0
,
0.0
,
0
.0
,
0.0
,
0.0
,
0.0
)
},
{
"right_shoulder_yaw_joint"
,
ControlJointValue
(
500
0.0
,
0.0
,
1
.0
,
0.0
,
0.0
,
0.0
)
},
{
"right_elbow_joint"
,
ControlJointValue
(
0.0
,
0.0
,
0
.0
,
0.0
,
0.0
,
0.0
)
},
{
"right_elbow_joint"
,
ControlJointValue
(
500
0.0
,
0.0
,
1
.0
,
0.0
,
0.0
,
0.0
)
},
{
"right_wrist_roll_joint"
,
ControlJointValue
(
0.0
,
0
.0
,
0.
0
,
0.0
,
0.0
,
0.0
)
},
{
"right_wrist_roll_joint"
,
ControlJointValue
(
50
0.0
,
1
.0
,
0.
1
,
0.0
,
0.0
,
0.0
)
},
{
"right_wrist_pitch_joint"
,
ControlJointValue
(
0.0
,
0
.0
,
0.
0
,
0.0
,
0.0
,
0.0
)
},
{
"right_wrist_pitch_joint"
,
ControlJointValue
(
50
0.0
,
1
.0
,
0.
1
,
0.0
,
0.0
,
0.0
)
},
{
"right_wrist_yaw_joint"
,
ControlJointValue
(
0.0
,
0
.0
,
0.
0
,
0.0
,
0.0
,
0.0
)
},
{
"right_wrist_yaw_joint"
,
ControlJointValue
(
50
0.0
,
1
.0
,
0.
1
,
0.0
,
0.0
,
0.0
)
},
{
"left_hip_yaw_joint"
,
ControlJointValue
(
0.0
,
0.0
,
0
.0
,
0
.0
,
0.0
,
0.0
)
},
{
"left_hip_yaw_joint"
,
ControlJointValue
(
500
0.0
,
2
0.0
,
5
.0
,
7
.0
,
0.0
,
0.0
)
},
{
"left_hip_pitch_joint"
,
ControlJointValue
(
0.0
,
0.0
,
0.0
,
0
.0
,
0.0
,
0.0
)
},
{
"left_hip_pitch_joint"
,
ControlJointValue
(
500
0.0
,
2
0.0
,
5.0
,
14
.0
,
0.0
,
0.0
)
},
{
"left_hip_roll_joint"
,
ControlJointValue
(
0.0
,
0.0
,
0.0
,
0
.0
,
0.0
,
0.0
)
},
{
"left_hip_roll_joint"
,
ControlJointValue
(
500
0.0
,
2
0.0
,
5.0
,
14
.0
,
0.0
,
0.0
)
},
{
"left_knee_joint"
,
ControlJointValue
(
0.0
,
0.0
,
0.0
,
0
.0
,
0.0
,
0.0
)
},
{
"left_knee_joint"
,
ControlJointValue
(
500
0.0
,
2
0.0
,
5.0
,
25
.0
,
0.0
,
0.0
)
},
{
"left_ankle_pitch_joint"
,
ControlJointValue
(
0.0
,
0.0
,
0.0
,
0
.0
,
0.0
,
0.0
)
},
{
"left_ankle_pitch_joint"
,
ControlJointValue
(
500
0.0
,
2
0.0
,
5.0
,
14
.0
,
0.0
,
0.0
)
},
{
"left_ankle_roll_joint"
,
ControlJointValue
(
0.0
,
0.0
,
0
.0
,
0
.0
,
0.0
,
0.0
)
},
{
"left_ankle_roll_joint"
,
ControlJointValue
(
500
0.0
,
2
0.0
,
5
.0
,
9
.0
,
0.0
,
0.0
)
},
{
"right_hip_yaw_joint"
,
ControlJointValue
(
0.0
,
0.0
,
0
.0
,
0
.0
,
0.0
,
0.0
)
},
{
"right_hip_yaw_joint"
,
ControlJointValue
(
500
0.0
,
2
0.0
,
5
.0
,
7
.0
,
0.0
,
0.0
)
},
{
"right_hip_pitch_joint"
,
ControlJointValue
(
0.0
,
0.0
,
0.0
,
0
.0
,
0.0
,
0.0
)
},
{
"right_hip_pitch_joint"
,
ControlJointValue
(
500
0.0
,
2
0.0
,
5.0
,
14
.0
,
0.0
,
0.0
)
},
{
"right_hip_roll_joint"
,
ControlJointValue
(
0.0
,
0.0
,
0.0
,
0
.0
,
0.0
,
0.0
)
},
{
"right_hip_roll_joint"
,
ControlJointValue
(
500
0.0
,
2
0.0
,
5.0
,
14
.0
,
0.0
,
0.0
)
},
{
"right_knee_joint"
,
ControlJointValue
(
0.0
,
0.0
,
0.0
,
0
.0
,
0.0
,
0.0
)
},
{
"right_knee_joint"
,
ControlJointValue
(
500
0.0
,
2
0.0
,
5.0
,
25
.0
,
0.0
,
0.0
)
},
{
"right_ankle_pitch_joint"
,
ControlJointValue
(
0.0
,
0.0
,
0.0
,
0
.0
,
0.0
,
0.0
)
},
{
"right_ankle_pitch_joint"
,
ControlJointValue
(
500
0.0
,
2
0.0
,
5.0
,
14
.0
,
0.0
,
0.0
)
},
{
"right_ankle_roll_joint"
,
ControlJointValue
(
0.0
,
0.0
,
0
.0
,
0
.0
,
0.0
,
0.0
)
},
{
"right_ankle_roll_joint"
,
ControlJointValue
(
500
0.0
,
2
0.0
,
5
.0
,
9
.0
,
0.0
,
0.0
)
},
{
"torso_joint"
,
ControlJointValue
(
0.0
,
0.0
,
0
.0
,
0.0
,
0.0
,
0.0
)
},
{
"torso_joint"
,
ControlJointValue
(
1000
0.0
,
2
0.0
,
1
.0
,
1
0.0
,
0.0
,
0.0
)
},
};
};
...
@@ -134,7 +134,7 @@ int main(int argc, char **argv)
...
@@ -134,7 +134,7 @@ int main(int argc, char **argv)
a_robot_ctrl_joint_infos
=
(
choice
==
0
)
?
a_robot_ctrl_joint_infos
=
(
choice
==
0
)
?
h1_2_ctrl_joint_infos
:
talos_ctrl_joint_infos
;
h1_2_ctrl_joint_infos
:
talos_ctrl_joint_infos
;
bool
debug_level
=
fals
e
;
bool
debug_level
=
tru
e
;
gz_transport_hw_tools
::
PerceptionActionLoop
a_pal
(
a_robot_ctrl_joint_infos
,
gz_transport_hw_tools
::
PerceptionActionLoop
a_pal
(
a_robot_ctrl_joint_infos
,
...
...
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