Skip to content
Merged
4 changes: 2 additions & 2 deletions robots/icub/icub.urdf
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
<!-- =================================================================================== -->
<!-- icub URDF model -->
<robot name="icub" xmlns:xacro="http://ros.org/wiki/xacro">
<link name="world"/>
<!-- <link name="world"/>
<joint name="reference" type="floating">
<parent link="world"/>
<child link="waist"/>
<origin rpy="0 0 0" xyz="0 0 0"/>
</joint>
</joint> -->
<!-- INDEX -->
<!-- just press ctrl+f to search -->
<!-- LINKS -->
Expand Down
Binary file modified robots/icub/icub_description/meshes/visual/glb/icub_chest.glb
Binary file not shown.
Binary file modified robots/icub/icub_description/meshes/visual/glb/icub_head.glb
Binary file not shown.
Binary file not shown.
Binary file modified robots/icub/icub_description/meshes/visual/glb/icub_l_ankle_2.glb
Binary file not shown.
Binary file modified robots/icub/icub_description/meshes/visual/glb/icub_l_elbow_1.glb
Binary file not shown.
Binary file modified robots/icub/icub_description/meshes/visual/glb/icub_l_foot.glb
Binary file not shown.
Binary file not shown.
Binary file modified robots/icub/icub_description/meshes/visual/glb/icub_l_hand.glb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified robots/icub/icub_description/meshes/visual/glb/icub_l_wrist_1.glb
Binary file not shown.
Binary file not shown.
Binary file modified robots/icub/icub_description/meshes/visual/glb/icub_lap_belt_2.glb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified robots/icub/icub_description/meshes/visual/glb/icub_r_ankle_2.glb
Binary file not shown.
Binary file modified robots/icub/icub_description/meshes/visual/glb/icub_r_elbow_1.glb
Binary file not shown.
Binary file modified robots/icub/icub_description/meshes/visual/glb/icub_r_foot.glb
Binary file not shown.
Binary file not shown.
Binary file modified robots/icub/icub_description/meshes/visual/glb/icub_r_hand.glb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified robots/icub/icub_description/meshes/visual/glb/icub_r_wrist_1.glb
Binary file not shown.
Binary file modified robots/icub/icub_description/meshes/visual/glb/icub_waist.glb
Binary file not shown.
12 changes: 8 additions & 4 deletions src/examples/icub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,14 @@ int main()
#endif
simu.add_checkerboard_floor();
simu.add_robot(robot);

// Add some visualizations
// robot->set_draw_axis(imu_config.body->getName());
// robot->set_draw_axis("r_ankle_2");
auto ghost = robot->clone_ghost();
ghost->skeleton()->setPosition(4, -1.57);
ghost->skeleton()->setPosition(5, 1.1);
simu.add_robot(ghost);
#if DART_VERSION_AT_MOST(6, 12, 99)
// fix a bug for older versions of DART
robot->set_color_mode("material");
#endif

simu.set_control_freq(100); // 100 Hz
std::vector<std::string> dofs = {
Expand Down
5 changes: 4 additions & 1 deletion src/robot_dart/robots/a1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@ namespace robot_dart {
set_color_mode("material");
set_self_collision(true);
set_position_enforced(true);

// put above ground
set_base_pose(robot_dart::make_vector({0., 0., 0., 0., 0., 0.5}));

// standing pose
auto names = dof_names(true, true, true);
names = std::vector<std::string>(names.begin() + 6, names.end());
// standing pose
set_positions(robot_dart::make_vector({0.0, 0.67, -1.3, -0.0, 0.67, -1.3, 0.0, 0.67, -1.3, -0.0, 0.67, -1.3}), names);
}
} // namespace robots
Expand Down
4 changes: 1 addition & 3 deletions src/robot_dart/robots/icub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ namespace robot_dart {
_ft_foot_right(std::make_shared<sensor::ForceTorque>(joint("r_ankle_roll"), frequency))
{
set_color_mode("material");
set_color_mode("aspect", "right_foot");
set_color_mode("aspect", "left_foot");

set_position_enforced(true);
skeleton()->setPosition(5, 0.5);
skeleton()->setPosition(5, 0.46);
skeleton()->setPosition(2, 1.57);
}

Expand Down