Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable samplerobot sample in kinetic #246

Closed

Conversation

Naoki-Hiraoka
Copy link
Contributor

@Naoki-Hiraoka Naoki-Hiraoka commented Dec 11, 2019

In kinetic, we have to set use_velocity_feedback to false (because #245).

After setting use_velocity_feedback to false, we have other problems in simulating samplebot.

roslaunch hrpsys_gazebo_general gazebo_samplerobot_no_controllers.launch
rtmlaunch hrpsys_gazebo_general samplerobot_hrpsys_bringup.launch

samplebot_effort

  1. The robot vibrates.
  2. Too many error messages arise. [hrpEC][1576049965.454544] Timeover: processing time = 2.38[ms] (but control rate is 200 Hz!)

To solve 1, I set p-gain to smaller value. 3bcc726
To solve 2, I had to modify /opt/ros/kinetic/share/hrpsys_ros_bridge/models/SampleRobot.RobotHardware.conf (not included in this PR)
from
exec_cxt.periodic.rate: 500
to
exec_cxt.periodic.rate: 200

(control rate is defined in 4 files

SampleRobot.RobotHardware.conf
(for execution and control of RobotHardware.rtc)

and

<arg name="HRPSYS_RATE" default="200" />

(for execution of other rtc)(default value)

and


(for control of other rtc)

and


(for IOBPlugin)(default value)
)

With these modification, the robot still cannot walk, so more debugging is needed.
samplebot_walk

@Naoki-Hiraoka Naoki-Hiraoka changed the title [WIP][Depends on #242]Enable samplebot sample [WIP][Depends on #242]Enable samplerobot sample Dec 11, 2019
@Naoki-Hiraoka
Copy link
Contributor Author

Another bug was found.
fkanehiro/hrpsys-base#1288

@Naoki-Hiraoka
Copy link
Contributor Author

SampleRobot walked in kinetic.

roslaunch hrpsys_gazebo_general gazebo_samplerobot_no_controllers.launch
rtmlaunch hrpsys_gazebo_general samplerobot_hrpsys_bringup.launch
roseus
load "package://hrpsys_ros_bridge/euslisp/samplerobot-interface.l
samplerobot-init
setq *robot* (instance SampleRobot-robot :init)
send *ri* :angle-vector (send *robot* :angle-vector) 5000
send *ri* :start-auto-balancer
send *ri* :start-st
send *ri* :go-pos 1 0 0 

samplebot_walk

The upper body vibrates while walking.
It seems that this is because the inertia of upper body of SampleRobot is very small so the simulation easily gets unstable.

@Naoki-Hiraoka Naoki-Hiraoka changed the title [WIP][Depends on #242]Enable samplerobot sample [WIP]Enable samplerobot sample in kinetic Apr 10, 2020
@Naoki-Hiraoka Naoki-Hiraoka changed the title [WIP]Enable samplerobot sample in kinetic Enable samplerobot sample in kinetic Apr 13, 2020
@Naoki-Hiraoka
Copy link
Contributor Author

This PR is included in #250

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants