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

controller manager dies #6

Closed
osrf-migration opened this issue Nov 7, 2016 · 59 comments
Closed

controller manager dies #6

osrf-migration opened this issue Nov 7, 2016 · 59 comments
Labels
bug Something isn't working major

Comments

@osrf-migration
Copy link

Original report (archived issue) by dan (Bitbucket: dan77062).

The original report had attachments: master.log, roslaunch-Mingo-Mtn-Robotics-24044.log, control_py_Mingo_Mtn_Robotics_24044_828331878780894790-3-stdout.log, roslaunch-Mingo-Mtn-Robotics-24096.log, rosout.log, rosout-1-stdout.log


The controller manager crashes as it tries to initialize the hardware interface. This continues after updating with the fix for the $HOME/valkyrie directory missing issue (issue #4). See the log below.

I am wondering if it is a race condition. It will load when gazebo_gui seg faults (that happens about 20% of the time). Log of that follows the controller manager crash log.

Here is the log of the controller manager crashing:

x1:~$ roslaunch srcsim qual2.launch extra_gazebo_args:="-r" init:="true"
... logging to /home/dbarry/.ros/log/dcf01448-a48a-11e6-9a85-e4a47193b50c/roslaunch-x1-2380.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://127.0.0.1:41208/

SUMMARY
========

PARAMETERS
 * /ihmc_ros/robot_name: valkyrie
 * /ihmc_ros/valkyrie/left_arm_joint_names: ['leftShoulderPit...
 * /ihmc_ros/valkyrie/left_foot_frame_name: leftFoot
 * /ihmc_ros/valkyrie/right_arm_joint_names: ['rightShoulderPi...
 * /ihmc_ros/valkyrie/right_foot_frame_name: rightFoot
 * /ihmc_valkyrie_control_java_bridge/jvm_args: -Djava.class.path...
 * /ihmc_valkyrie_control_java_bridge/main_class: us.ihmc.valkyrieR...
 * /ihmc_valkyrie_control_java_bridge/type: ihmc_ros_control/...
 * /ihmc_valkyrie_control_java_bridge/working_dir: /home/dbarry/valk...
 * /joint_state_controller/publish_rate: 50
 * /joint_state_controller/type: joint_state_contr...
 * /robot_description: <?xml version="1....
 * /rosdistro: indigo
 * /rosversion: 1.11.20
 * /use_sim_time: True
 * /valkyrie/robot_description: <?xml version="1....

NODES
  /
    IHMCValkyrieROSAPI (ihmc_ros_java_adapter/gradlew)
    control_py_x1_2380_7570232152004045897 (robonet_tools/control)
    controller_manager_x1_2380_5207285626105591507 (val_deploy/delayed_roslaunch.sh)
    controller_spawner_x1_2380_1851790389431894578 (controller_manager/spawner)
    gazebo (gazebo_ros/gzserver)
    gazebo_gui (gazebo_ros/gzclient)
    robot_state_publisher (robot_state_publisher/state_publisher)
    smtcore_x1_2380_2977631580949370987 (shared_memory_transport/smtcore)
    startup_robot (srcsim/init_robot.sh)
    urdf_spawner_x1_2380_8262126648062010210 (val_deploy/delayed_roslaunch.sh)

auto-starting new master
process[master]: started with pid [2415]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to dcf01448-a48a-11e6-9a85-e4a47193b50c
process[rosout-1]: started with pid [2428]
started core service [/rosout]
process[smtcore_x1_2380_2977631580949370987-2]: started with pid [2439]
process[control_py_x1_2380_7570232152004045897-3]: started with pid [2448]
delaying: 4 seconds
process[controller_manager_x1_2380_5207285626105591507-4]: started with pid [2454]
process[gazebo-5]: started with pid [2456]
process[gazebo_gui-6]: started with pid [2460]
delaying: 6 seconds
process[urdf_spawner_x1_2380_8262126648062010210-7]: started with pid [2464]
process[robot_state_publisher-8]: started with pid [2466]
process[IHMCValkyrieROSAPI-9]: started with pid [2470]
process[controller_spawner_x1_2380_1851790389431894578-10]: started with pid [2472]
wait 60s for system to load
process[startup_robot-11]: started with pid [2480]
Log file /home/dbarry/.log already exists, proceeding...
Log file /home/dbarry/.log already exists, proceeding...
Gazebo multi-robot simulator, version 7.4.0
Copyright (C) 2012-2016 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org

[ INFO] [1478482701.248677300]: Finished loading Gazebo ROS API Plugin.
[Msg] Waiting for master.
[ INFO] [1478482701.250145508]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting...
[Msg] Connected to gazebo master @ http://127.0.0.1:11345
[Msg] Publicized address: 192.168.1.227
[INFO] [WallTime: 1478482701.451136] [0.000000] Controller Spawner: Waiting for service controller_manager/load_controller
[ INFO] [1478482702.712379193, 0.024000000]: waitForService: Service [/gazebo/set_physics_properties] is now available.
[ INFO] [1478482702.788134648, 0.075000000]: Physics dynamic reconfigure ready.
starting: roslaunch val_deploy val_control_sim.launch controller_manager_looprate:=500 __name:=controller_manager_x1_2380_5207285626105591507 __log:=/home/user/.ros/log/dcf01448-a48a-11e6-9a85-e4a47193b50c/controller_manager_x1_2380_5207285626105591507-4.log
... logging to /home/user/.ros/log/dcf01448-a48a-11e6-9a85-e4a47193b50c/roslaunch-x1-2740.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

> Loading > buildSrcstarted roslaunch server http://127.0.0.1:46157/

SUMMARY
========

PARAMETERS
 * /rosdistro: indigo
 * /rosversion: 1.11.20

NODES
  /
    controller_manager_x1_2740_5196629567473667321 (val_controller_manager_rtt/controller_exec)

ROS_MASTER_URI=http://localhost:11311

core service [/rosout] found
process[controller_manager_x1_2740_5196629567473667321-1]: started with pid [2765]
exception subscribing to JointAPS_Angle_Rad : /pelvis/waist/JointAPS_Angle_Rad has not been registered.
exception subscribing to JointAPS_Vel_Radps : /pelvis/waist/JointAPS_Vel_Radps has not been registered.
exception subscribing to JointTorque_Des_Nm : /pelvis/waist/JointTorque_Des_Nm has not been registered.
exception subscribing to JointTorque_Meas_Nm : /pelvis/waist/JointTorque_Meas_Nm has not been registered.
exception subscribing to Position_Des_Rad : /pelvis/waist/Position_Des_Rad has not been registered.
exception subscribing to Velocity_Des_Radps : /pelvis/waist/Velocity_Des_Radps has not been registered.
2016-11-06 20:38:26 localhost ncl_cpp: [ERROR   ] [gov.nasa.RobotInterface.addJointsAndActuators] Exception encountered while attempting to add an actuator! Check your URDF for correct XML formatting!
[ERROR] [1478482706.638611814, 3.792000000]:  Exception encountered while attempting to add an actuator! Check your URDF for correct XML formatting!
2016-11-06 20:38:26 localhost ncl_cpp: [ERROR   ] [gov.nasa.HardwareInterface.makeHandle] Robot Hardware has failed Initialized properly. 

[ERROR] [1478482706.638921238, 3.792000000]: Fatal exception error encountered initializing RobotHardwareInterface, exiting
2016-11-06 20:38:26 localhost ncl_cpp: [FATAL   ] [gov.nasa.ControllerExec.ORO_main] Error encountered during configure hook for controller_manager component!
starting: roslaunch val_gazebo spawn_urdf_model_from_robot_description.launch modelName:=valkyrie zOffset:=1.25 __name:=urdf_spawner_x1_2380_8262126648062010210 __log:=/home/dbarry/.ros/log/dcf01448-a48a-11e6-9a85-e4a47193b50c/urdf_spawner_x1_2380_8262126648062010210-7.log
================================================================================REQUIRED process [controller_manager_x1_2740_5196629567473667321-1] has died!
process has died [pid 2765, exit code 1, cmd /opt/nasa/indigo/lib/val_controller_manager_rtt/controller_exec --rate 500 -s __name:=controller_manager_x1_2740_5196629567473667321 __log:=/home/dbarry/.ros/log/dcf01448-a48a-11e6-9a85-e4a47193b50c/controller_manager_x1_2740_5196629567473667321-1.log].
log file: /home/dbarry/.ros/log/dcf01448-a48a-11e6-9a85-e4a47193b50c/controller_manager_x1_2740_5196629567473667321-1*.log
Initiating shutdown!
================================================================================
[controller_manager_x1_2740_5196629567473667321-1] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done
[controller_manager_x1_2380_5207285626105591507-4] process has finished cleanly
log file: /home/dbarry/.ros/log/dcf01448-a48a-11e6-9a85-e4a47193b50c/controller_manager_x1_2380_5207285626105591507-4*.log
... logging to /home/dbarry/.ros/log/dcf01448-a48a-11e6-9a85-e4a47193b50c/roslaunch-x1-2818.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://127.0.0.1:43638/

Here the controller manager loads after gazebo_gui seg faults:

.............
core service [/rosout] found
process[controller_manager_x1_8269_8854522228583915511-1]: started with pid [8294]
Segmentation fault (core dumped)
[gazebo_gui-6] process has died [pid 7984, exit code 139, cmd /opt/ros/indigo/lib/gazebo_ros/gzclient __name:=gazebo_gui __log:=/home/dbarry/.ros/log/c00f0c74-a491-11e6-b149-e4a47193b50c/gazebo_gui-6.log].
log file: /home/dbarry/.ros/log/c00f0c74-a491-11e6-b149-e4a47193b50c/gazebo_gui-6*.log
starting: roslaunch val_gazebo spawn_urdf_model_from_robot_description.launch modelName:=valkyrie zOffset:=1.25 __name:=urdf_spawner_x1_7927_4442223900582953886 __log:=/home/dbarry/.ros/log/c00f0c74-a491-11e6-b149-e4a47193b50c/urdf_spawner_x1_7927_4442223900582953886-7.log
2016-11-06 21:27:44 localhost ncl_cpp: [NOTICE  ] [gov.nasa.HardwareInterface.makeHandle] Robot Hardware has Initialized. Ready to start loading Controllers. 

[INFO] [WallTime: 1478485664.666343] [4.582000] Controller Spawner: Waiting for service controller_manager/switch_controller
[INFO] [WallTime: 1478485664.669229] [4.585000] Controller Spawner: Waiting for service controller_manager/unload_controller
[INFO] [WallTime: 1478485664.671889] [4.588000] Loading controller: ihmc_valkyrie_control_java_bridge
[ INFO] [1478485664.756112539, 4.672000000]: Starting JVM with arguments: -Djava.class.path=ValkyrieController.jar -XX:+UseSerialGC -Xmx4g -Xms4g -XX:NewSize=3g -XX:MaxNewSize=3g -XX:CompileThreshold=1000 -verbosegc -Djava.library.path=lib/
Starting Java VM from path  /home/dbarry/valkyrie
Started Java VM: success
@osrf-migration
Copy link
Author

Original comment by dan (Bitbucket: dan77062).


  • Edited issue description

1 similar comment
@osrf-migration
Copy link
Author

Original comment by dan (Bitbucket: dan77062).


  • Edited issue description

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


Can you make sure that you followed every step of the installation tutorial?

Also, have you ever installed Gazebo and/or ROS in the past?

@osrf-migration
Copy link
Author

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


  • Edited issue description

@osrf-migration
Copy link
Author

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


The crux of the error seems to be here:

process[controller_manager_x1_2740_5196629567473667321-1]: started with pid [2765]
exception subscribing to JointAPS_Angle_Rad : /pelvis/waist/JointAPS_Angle_Rad has not been registered.
exception subscribing to JointAPS_Vel_Radps : /pelvis/waist/JointAPS_Vel_Radps has not been registered.
exception subscribing to JointTorque_Des_Nm : /pelvis/waist/JointTorque_Des_Nm has not been registered.
exception subscribing to JointTorque_Meas_Nm : /pelvis/waist/JointTorque_Meas_Nm has not been registered.
exception subscribing to Position_Des_Rad : /pelvis/waist/Position_Des_Rad has not been registered.
exception subscribing to Velocity_Des_Radps : /pelvis/waist/Velocity_Des_Radps has not been registered.
2016-11-06 20:38:26 localhost ncl_cpp: [ERROR   ] [gov.nasa.RobotInterface.addJointsAndActuators] Exception encountered while attempting to add an actuator! Check your URDF for correct XML formatting!
[ERROR] [1478482706.638611814, 3.792000000]:  Exception encountered while attempting to add an actuator! Check your URDF for correct XML formatting!
2016-11-06 20:38:26 localhost ncl_cpp: [ERROR   ] [gov.nasa.HardwareInterface.makeHandle] Robot Hardware has failed Initialized properly. 

[ERROR] [1478482706.638921238, 3.792000000]: Fatal exception error encountered initializing RobotHardwareInterface, exiting
2016-11-06 20:38:26 localhost ncl_cpp: [FATAL   ] [gov.nasa.ControllerExec.ORO_main] Error encountered during configure hook for controller_manager component!

cc @jordanlack

@osrf-migration
Copy link
Author

Original comment by Jordan Lack (Bitbucket: jordanlack).


Is this happening every time for you? It's likely a race condition as @scpeters mentioned. We have 2 nodes that are launched and the 2nd one needs the first one to be alive when it launches. We currently hack in waits to try to make sure the first node has time to get started. I see this sometimes, but it never happens for me when things go smoothly. I see it sometimes when gazebo segfaults or something.

@osrf-migration
Copy link
Author

Original comment by dan (Bitbucket: dan77062).


I did follow all the steps (and by the way, suggested it may be a race condition). I have used ROS for a long time and am familiar with setups.

This is on a new Ubuntu/Inidgo installation (because I had 16.04 and kinetic running, so I did a clean install). I did not install Gazebo. It also happens on a second machine that already had 14.04/Indigo installed. That machine also did not have Gazebo installed.

It crashes every time on both machines for one reason or another, either the seg fault or the controller issue. If it gets all the way through to showing the world with the robot, then the robot collapses after about 30 seconds. None of the input messages have any effect.

If I exclude the following part of the launch file, then it loads most of the time and the robot remains in the harness. This works for both qual1.world and qual2.world:

@osrf-migration
Copy link
Author

Original comment by Jordan Lack (Bitbucket: jordanlack).


Could you try roslaunch val_gazebo val_sim_gazebo_sync.launch or roslaunch val_gazebo val_sim.launch? If that fails with the same exception then it's definitely our(NASA's) fault. Basically i'm not sure how commenting out those lines you have there are helping at all. That makes me think something else is bringing down one of our nodes and the controller_manager is just where the first exception comes in. Not really sure how that could happen though...Let me know if your able to reliably launch those two launch files.

@osrf-migration
Copy link
Author

Original comment by Erica Tiberia (Bitbucket: T_AL).


I also have the same setup as Dan. I tried the first simulation, Val launched in the simulation but I received the following errors.

ROS_MASTER_URI=http://localhost:11311

core service [/rosout] found
process[urdf_spawner-1]: started with pid [5656]
spawn_model script started
[INFO] [WallTime: 1478546649.517734] [0.000000] Loading model xml from ros parameter
[INFO] [WallTime: 1478546649.536395] [0.000000] Waiting for service /gazebo/spawn_urdf_model
[INFO] [WallTime: 1478546649.539783] [0.000000] Calling service /gazebo/spawn_urdf_model
Warning [parser.cc:778] XML Element[imuTransform], child of element[sensor] not defined in SDF. Ignoring[imuTransform]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[node], child of element[sensor] not defined in SDF. Ignoring[node]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[api], child of element[sensor] not defined in SDF. Ignoring[api]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[port], child of element[sensor] not defined in SDF. Ignoring[port]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[imuTransform], child of element[sensor] not defined in SDF. Ignoring[imuTransform]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[node], child of element[sensor] not defined in SDF. Ignoring[node]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[api], child of element[sensor] not defined in SDF. Ignoring[api]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[port], child of element[sensor] not defined in SDF. Ignoring[port]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[sensor_number], child of element[sensor] not defined in SDF. Ignoring[sensor_number]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[node], child of element[sensor] not defined in SDF. Ignoring[node]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[api], child of element[sensor] not defined in SDF. Ignoring[api]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[sensor_number], child of element[sensor] not defined in SDF. Ignoring[sensor_number]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[node], child of element[sensor] not defined in SDF. Ignoring[node]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[api], child of element[sensor] not defined in SDF. Ignoring[api]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[imuTransform], child of element[sensor] not defined in SDF. Ignoring[imuTransform]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[node], child of element[sensor] not defined in SDF. Ignoring[node]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[api], child of element[sensor] not defined in SDF. Ignoring[api]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[port], child of element[sensor] not defined in SDF. Ignoring[port]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
[ INFO] [1478546650.475775468]: Camera Plugin (robotNamespace = /), Info: Using the 'robotNamespace' param: '/'
[ INFO] [1478546650.475916877]: Camera Plugin (robotNamespace = /), Info: Using the 'robotNamespace' param: '/'
[ INFO] [1478546650.488222610]: Camera Plugin (ns = /) <tf_prefix_>, set to ""
[ INFO] [1478546650.511656908]: Camera Plugin (ns = /) <tf_prefix_>, set to ""
[ INFO] [1478546650.535314158]: Laser Plugin (robotNamespace = /), Info: Using the 'robotNamespace' param: '/'
[ INFO] [1478546650.535442156]: Starting GazeboRosLaser Plugin (ns = /)!
[ INFO] [1478546650.552305797]: GPU Laser Plugin (ns = /) <tf_prefix_>, set to ""
[ INFO] [1478546650.553801577]: LoadThread function completed
[INFO] [WallTime: 1478546650.563564] [0.000000] Spawn status: SpawnModel: Successfully spawned model
[urdf_spawner-1] process has finished cleanly
log file: /home/mario/.ros/log/bd679700-a51f-11e6-b8db-e4029b1066fc/urdf_spawner-1*.log
all processes on machine have died, roslaunch will exit
shutting down processing monitor...
... shutting down processing monitor complete
done
[ INFO] [1478546651.012832101]: SharedMemoryInterfacePlugin: Loading
2016-11-07 14:24:11 localhost ncl_cpp: [ERROR ] [gov.nasa.SharedMemorySimInterfacePlugin.findUrdfSensors] Possibly missing an api or node tag from one or more imu sensors
2016-11-07 14:24:11 localhost ncl_cpp: [WARN ] [gov.nasa.SharedMemorySimInterfacePlugin.findUrdfSensors] Imu sensor head_imu_sensor doesn't have tag. It is likely that the data you receive from this sensor will be incorrect.
[urdf_spawner_mario_Inspiron_5559_5343_6310370752551279030-7] process has finished cleanly
log file: /home/mario/.ros/log/bd679700-a51f-11e6-b8db-e4029b1066fc/urdf_spawner_mario_Inspiron_5559_5343_6310370752551279030-7*.log
[ INFO] [1478546651.070136854]: SharedMemorySimInterfacePlugin: Loading complete!
[ INFO] [1478546651.309840698]: imu plugin missing , defaults to
[ INFO] [1478546651.315224814]: imu plugin missing , defaults to
[ INFO] [1478546651.316069412]: imu plugin missing , defaults to

@osrf-migration
Copy link
Author

Original comment by Jordan Lack (Bitbucket: jordanlack).


It's a bit difficult to parse through that. Could you format that please next time? It looks to me though like you don't have any critical problems there though. A lot of those are typical things that I don't think would cause the sim to not work. I see an [ERROR] msg in there that we should change to [WARN].

A lot of those SDF warnings are because we put a bunch of tags in our URDF that our controller manager parses out, so those aren't anything to be concerned about.

@osrf-migration
Copy link
Author

Original comment by dan (Bitbucket: dan77062).


Jordan, the launch files you suggested both load the model OK. There are a bunch of warnings, but gazebo comes up very quickly and the robot model loads fine. See my additional comments for the behavior when I break up the launch file into two launch files, where you can see the first part loads OK (leaving the robot in the harness) and then the second part generates errors.

Just curious, you have gotten the tutorial to work with a completely new install of Ubuntu 14.04 and ROS Indigo, right? Just want to be sure there is not some environment variable or something like that I'm missing.

Here is the log from the launch file you asked me to run:

#!python

starting: roslaunch val_gazebo spawn_urdf_model_from_robot_description.launch modelName:=valkyrie zOffset:=1.25 __name:=urdf_spawner_x1_16607_3462358118607665818 __log:=/home/dbarry/.ros/log/b3087a50-a532-11e6-bd66-e4a47193b50c/urdf_spawner_x1_16607_3462358118607665818-7.log
... logging to /home/dbarry/.ros/log/b3087a50-a532-11e6-bd66-e4a47193b50c/roslaunch-x1-16862.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://127.0.0.1:33335/

SUMMARY
========

PARAMETERS
 * /rosdistro: indigo
 * /rosversion: 1.11.20

NODES
  /
    urdf_spawner (gazebo_ros/spawn_model)

ROS_MASTER_URI=http://localhost:11311

core service [/rosout] found
process[urdf_spawner-1]: started with pid [16880]
spawn_model script started
[INFO] [WallTime: 1478554792.532189] [0.000000] Loading model xml from ros parameter
[INFO] [WallTime: 1478554792.550197] [0.000000] Waiting for service /gazebo/spawn_urdf_model
[INFO] [WallTime: 1478554792.553837] [0.000000] Calling service /gazebo/spawn_urdf_model
Warning [parser.cc:778] XML Element[imuTransform], child of element[sensor] not defined in SDF. Ignoring[imuTransform]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[node], child of element[sensor] not defined in SDF. Ignoring[node]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[api], child of element[sensor] not defined in SDF. Ignoring[api]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[port], child of element[sensor] not defined in SDF. Ignoring[port]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[imuTransform], child of element[sensor] not defined in SDF. Ignoring[imuTransform]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[node], child of element[sensor] not defined in SDF. Ignoring[node]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[api], child of element[sensor] not defined in SDF. Ignoring[api]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[port], child of element[sensor] not defined in SDF. Ignoring[port]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[sensor_number], child of element[sensor] not defined in SDF. Ignoring[sensor_number]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[node], child of element[sensor] not defined in SDF. Ignoring[node]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[api], child of element[sensor] not defined in SDF. Ignoring[api]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[sensor_number], child of element[sensor] not defined in SDF. Ignoring[sensor_number]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[node], child of element[sensor] not defined in SDF. Ignoring[node]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[api], child of element[sensor] not defined in SDF. Ignoring[api]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[imuTransform], child of element[sensor] not defined in SDF. Ignoring[imuTransform]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[node], child of element[sensor] not defined in SDF. Ignoring[node]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[api], child of element[sensor] not defined in SDF. Ignoring[api]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[port], child of element[sensor] not defined in SDF. Ignoring[port]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
[ INFO] [1478554793.515908277]: Camera Plugin (robotNamespace = /), Info: Using the 'robotNamespace' param: '/'
[ INFO] [1478554793.516240213]: Camera Plugin (robotNamespace = /), Info: Using the 'robotNamespace' param: '/'
[ INFO] [1478554793.530558016]: Camera Plugin (ns = /)  <tf_prefix_>, set to ""
[ INFO] [1478554793.535582269]: Laser Plugin (robotNamespace = /), Info: Using the 'robotNamespace' param: '/'
[ INFO] [1478554793.535735219]: Starting GazeboRosLaser Plugin (ns = /)!
[ INFO] [1478554793.546875073]: Camera Plugin (ns = /)  <tf_prefix_>, set to ""
[ INFO] [1478554793.546998273]: GPU Laser Plugin (ns = /) <tf_prefix_>, set to ""
[ INFO] [1478554793.562322079]: LoadThread function completed
[INFO] [WallTime: 1478554793.637370] [0.000000] Spawn status: SpawnModel: Successfully spawned model
[urdf_spawner-1] process has finished cleanly
log file: /home/dbarry/.ros/log/b3087a50-a532-11e6-bd66-e4a47193b50c/urdf_spawner-1*.log
all processes on machine have died, roslaunch will exit
[ INFO] [1478554794.022449946]: SharedMemoryInterfacePlugin: Loading
shutting down processing monitor...
... shutting down processing monitor complete
done
2016-11-07 16:39:54 localhost ncl_cpp: [ERROR   ] [gov.nasa.SharedMemorySimInterfacePlugin.findUrdfSensors] Possibly missing an api or node tag from one or more imu sensors
2016-11-07 16:39:54 localhost ncl_cpp: [WARN    ] [gov.nasa.SharedMemorySimInterfacePlugin.findUrdfSensors] Imu sensor head_imu_sensor doesn't have <imuTransform> tag. It is likely that the data you receive from this sensor will be incorrect.
[ INFO] [1478554794.082361202]: SharedMemorySimInterfacePlugin: Loading complete!
[urdf_spawner_x1_16607_3462358118607665818-7] process has finished cleanly
log file: /home/dbarry/.ros/log/b3087a50-a532-11e6-bd66-e4a47193b50c/urdf_spawner_x1_16607_3462358118607665818-7*.log
[ INFO] [1478554794.387790691]: imu plugin missing <frameName>, defaults to <bodyName>
[ INFO] [1478554794.388730500]: imu plugin missing <frameName>, defaults to <bodyName>
[ INFO] [1478554794.389804788]: imu plugin missing <frameName>, defaults to <bodyName>

@osrf-migration
Copy link
Author

Original comment by dan (Bitbucket: dan77062).


Also, here is the modified launch file, along with the log. In this case, the world and the robot load OK and the robot just stays in the harness.

#!python

	<launch>
	  <!-- start with robot harnessed by default. -->
	  <!-- set:
		     roslaunch srcsim qual1.launch init:=true
		   to automatically lower robot harnessed, start high level controller and detach harness. -->
	  <!-- set:
		     roslaunch srcsim qual1.launch init:=true walk_test:=walk
		   to automatically walk forward after harness detach. -->
	  <arg name="debug" default="false" />
	  <arg name="extra_gazebo_args" default=""/>
	  <arg name="init" default="false" />
	  <arg name="paused" default="false" />
	  <arg name="use_local_build" default="false" />
	  <arg name="verbose" default="true" />
	  <arg name="walk_test" default="false"/>
	  <arg name="world_name" default="$(find srcsim)/worlds/qual2.world" />

	  <include file="$(find val_gazebo)/launch/val_sim_gazebo_sync.launch" pass_all_args="false">
		<arg name="debug" value="$(arg debug)" />
		<arg name="extra_gazebo_args" default="$(arg extra_gazebo_args)"/>
		<arg name="paused" value="$(arg paused)" />
		<arg name="verbose" value="$(arg verbose)" />
		<arg name="world_name" value="$(arg world_name)" />
	  </include>

	  <include file="$(find ihmc_valkyrie_ros)/launch/valkyrie_ros_api.launch" pass_all_args="false">
		<arg name="use_local_build" value="$(arg use_local_build)" />
	  </include>

	</launch>

log output:

#!python

dbarry@x1:/opt/ros/indigo/share/srcsim/launch$ gedit myQ2A.launch 
dbarry@x1:/opt/ros/indigo/share/srcsim/launch$ roslaunch srcsim myQ2A.launch 
... logging to /home/dbarry/.ros/log/457c946a-a534-11e6-b4e2-e4a47193b50c/roslaunch-x1-18436.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://127.0.0.1:33092/

SUMMARY
========

PARAMETERS
 * /ihmc_ros/robot_name: valkyrie
 * /ihmc_ros/valkyrie/left_arm_joint_names: ['leftShoulderPit...
 * /ihmc_ros/valkyrie/left_foot_frame_name: leftFoot
 * /ihmc_ros/valkyrie/right_arm_joint_names: ['rightShoulderPi...
 * /ihmc_ros/valkyrie/right_foot_frame_name: rightFoot
 * /robot_description: <?xml version="1....
 * /rosdistro: indigo
 * /rosversion: 1.11.20
 * /use_sim_time: True
 * /valkyrie/robot_description: <?xml version="1....

NODES
  /
    IHMCValkyrieROSAPI (ihmc_ros_java_adapter/gradlew)
    control_py_x1_18436_74504223220918311 (robonet_tools/control)
    controller_manager_x1_18436_4664789296967194160 (val_deploy/delayed_roslaunch.sh)
    gazebo (gazebo_ros/gzserver)
    gazebo_gui (gazebo_ros/gzclient)
    robot_state_publisher (robot_state_publisher/state_publisher)
    smtcore_x1_18436_8394651460433446721 (shared_memory_transport/smtcore)
    urdf_spawner_x1_18436_3884517551069303702 (val_deploy/delayed_roslaunch.sh)

auto-starting new master
process[master]: started with pid [18448]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to 457c946a-a534-11e6-b4e2-e4a47193b50c
process[rosout-1]: started with pid [18461]
started core service [/rosout]
process[smtcore_x1_18436_8394651460433446721-2]: started with pid [18470]
process[control_py_x1_18436_74504223220918311-3]: started with pid [18480]
process[controller_manager_x1_18436_4664789296967194160-4]: started with pid [18487]
delaying: 4 seconds
process[gazebo-5]: started with pid [18489]
process[gazebo_gui-6]: started with pid [18493]
delaying: 6 seconds
process[urdf_spawner_x1_18436_3884517551069303702-7]: started with pid [18497]
process[robot_state_publisher-8]: started with pid [18499]
process[IHMCValkyrieROSAPI-9]: started with pid [18500]
Log file /home/dbarry/.log already exists, proceeding...
Log file /home/dbarry/.log already exists, proceeding...
Gazebo multi-robot simulator, version 7.4.0
Copyright (C) 2012-2016 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org

[ INFO] [1478555461.212353948]: Finished loading Gazebo ROS API Plugin.
[Msg] Waiting for master.
[ INFO] [1478555461.213066339]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting...
[Msg] Connected to gazebo master @ http://127.0.0.1:11345
[Msg] Publicized address: 192.168.1.249
> Loading > buildSrc[ INFO] [1478555462.383495051, 0.021000000]: waitForService: Service [/gazebo/set_physics_properties] is now available.
 > settings[ INFO] [1478555462.453519153, 0.090000000]: Physics dynamic reconfigure ready.
starting: roslaunch val_deploy val_control_sim.launch controller_manager_looprate:=500 __name:=controller_manager_x1_18436_4664789296967194160 __log:=/home/dbarry/.ros/log/457c946a-a534-11e6-b4e2-e4a47193b50c/controller_manager_x1_18436_4664789296967194160-4.log
... logging to /home/dbarry/.ros/log/457c946a-a534-11e6-b4e2-e4a47193b50c/roslaunch-x1-18762.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://127.0.0.1:40084/

SUMMARY
========

PARAMETERS
 * /rosdistro: indigo
 * /rosversion: 1.11.20

NODES
  /
    controller_manager_x1_18762_4363294844662033416 (val_controller_manager_rtt/controller_exec)

ROS_MASTER_URI=http://localhost:11311

core service [/rosout] found
process[controller_manager_x1_18762_4363294844662033416-1]: started with pid [18793]
starting: roslaunch val_gazebo spawn_urdf_model_from_robot_description.launch modelName:=valkyrie zOffset:=1.25 __name:=urdf_spawner_x1_18436_3884517551069303702 __log:=/home/dbarry/.ros/log/457c946a-a534-11e6-b4e2-e4a47193b50c/urdf_spawner_x1_18436_3884517551069303702-7.log
2016-11-07 16:51:07 localhost ncl_cpp: [NOTICE  ] [gov.nasa.HardwareInterface.makeHandle] Robot Hardware has Initialized. Ready to start loading Controllers. 

... logging to /home/dbarry/.ros/log/457c946a-a534-11e6-b4e2-e4a47193b50c/roslaunch-x1-18861.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

 > Resolving dependencies ':runtime'started roslaunch server http://127.0.0.1:36218/

SUMMARY
========

PARAMETERS
 * /rosdistro: indigo
 * /rosversion: 1.11.20

NODES
  /
    urdf_spawner (gazebo_ros/spawn_model)

ROS_MASTER_URI=http://localhost:11311

core service [/rosout] found
process[urdf_spawner-1]: started with pid [18914]
spawn_model script started
[INFO] [WallTime: 1478555468.462656] [0.000000] Loading model xml from ros parameter
[INFO] [WallTime: 1478555468.508224] [5.860000] Waiting for service /gazebo/spawn_urdf_model
[INFO] [WallTime: 1478555468.517156] [5.867000] Calling service /gazebo/spawn_urdf_model
:buildSrc:compileJava UP-TO-DATE
> Loading > buildSrc > :buildSrc:compileGroovyWarning [parser.cc:778] XML Element[imuTransform], child of element[sensor] not defined in SDF. Ignoring[imuTransform]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[node], child of element[sensor] not defined in SDF. Ignoring[node]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[api], child of element[sensor] not defined in SDF. Ignoring[api]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[port], child of element[sensor] not defined in SDF. Ignoring[port]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[imuTransform], child of element[sensor] not defined in SDF. Ignoring[imuTransform]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[node], child of element[sensor] not defined in SDF. Ignoring[node]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[api], child of element[sensor] not defined in SDF. Ignoring[api]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[port], child of element[sensor] not defined in SDF. Ignoring[port]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[sensor_number], child of element[sensor] not defined in SDF. Ignoring[sensor_number]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[node], child of element[sensor] not defined in SDF. Ignoring[node]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[api], child of element[sensor] not defined in SDF. Ignoring[api]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[sensor_number], child of element[sensor] not defined in SDF. Ignoring[sensor_number]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[node], child of element[sensor] not defined in SDF. Ignoring[node]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[api], child of element[sensor] not defined in SDF. Ignoring[api]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[imuTransform], child of element[sensor] not defined in SDF. Ignoring[imuTransform]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[node], child of element[sensor] not defined in SDF. Ignoring[node]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[api], child of element[sensor] not defined in SDF. Ignoring[api]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
Warning [parser.cc:778] XML Element[port], child of element[sensor] not defined in SDF. Ignoring[port]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
:buildSrc:compileGroovy UP-TO-DATE
:buildSrc:processResources UP-TO-DATE
:buildSrc:classes UP-TO-DATE
:buildSrc:jar UP-TO-DATE
:buildSrc:assemble UP-TO-DATE
:buildSrc:compileTestJava UP-TO-DATE
:buildSrc:compileTestGroovy UP-TO-DATE
:buildSrc:processTestResources UP-TO-DATE
:buildSrc:testClasses UP-TO-DATE
:buildSrc:test UP-TO-DATE
:buildSrc:check UP-TO-DATE
:buildSrc:build UP-TO-DATE
> Configuring > 0/1 projects > root project[ INFO] [1478555470.036675136, 6.116000000]: Camera Plugin (robotNamespace = /), Info: Using the 'robotNamespace' param: '/'
[ INFO] [1478555470.037261219, 6.116000000]: Camera Plugin (robotNamespace = /), Info: Using the 'robotNamespace' param: '/'
[ INFO] [1478555470.045953231, 6.116000000]: Camera Plugin (ns = /)  <tf_prefix_>, set to ""
[ INFO] [1478555470.046415560, 6.116000000]: Camera Plugin (ns = /)  <tf_prefix_>, set to ""
[ INFO] [1478555470.134867150, 6.116000000]: Laser Plugin (robotNamespace = /), Info: Using the 'robotNamespace' param: '/'
[ INFO] [1478555470.137985311, 6.116000000]: Starting GazeboRosLaser Plugin (ns = /)!
[ INFO] [1478555470.199057684, 6.116000000]: GPU Laser Plugin (ns = /) <tf_prefix_>, set to ""
[ INFO] [1478555470.202693639, 6.116000000]: LoadThread function completed
 > Resolving dependencies ':ros'[Wrn] [msgs.cc:1793] Conversion of sensor type[imu] not suppported.
[Wrn] [msgs.cc:1793] Conversion of sensor type[imu] not suppported.
[Wrn] [msgs.cc:1793] Conversion of sensor type[imu] not suppported.
[Wrn] [msgs.cc:1793] Conversion of sensor type[imu] not suppported.
[Wrn] [msgs.cc:1793] Conversion of sensor type[multicamera] not suppported.
[Wrn] [msgs.cc:1793] Conversion of sensor type[gpu_ray] not suppported.
[Wrn] [msgs.cc:1793] Conversion of sensor type[force_torque] not suppported.
[Wrn] [msgs.cc:1793] Conversion of sensor type[force_torque] not suppported.
[INFO] [WallTime: 1478555470.515247] [6.116000] Spawn status: SpawnModel: Successfully spawned model
[urdf_spawner-1] process has finished cleanly
log file: /home/dbarry/.ros/log/457c946a-a534-11e6-b4e2-e4a47193b50c/urdf_spawner-1*.log
all processes on machine have died, roslaunch will exit
shutting down processing monitor...
... shutting down processing monitor complete
done
[Wrn] [ColladaLoader.cc:1461] Polylist input semantic: 'COLOR' is currently not supported
[urdf_spawner_x1_18436_3884517551069303702-7] process has finished cleanly
log file: /home/dbarry/.ros/log/457c946a-a534-11e6-b4e2-e4a47193b50c/urdf_spawner_x1_18436_3884517551069303702-7*.log
[Wrn] [msgs.cc:1793] Conversion of sensor type[force_torque] not suppported.
[Wrn] [msgs.cc:1793] Conversion of sensor type[force_torque] not suppported.
[ INFO] [1478555471.324676345, 6.116000000]: SharedMemoryInterfacePlugin: Loading
2016-11-07 16:51:11 localhost ncl_cpp: [ERROR   ] [gov.nasa.SharedMemorySimInterfacePlugin.findUrdfSensors] Possibly missing an api or node tag from one or more imu sensors
2016-11-07 16:51:11 localhost ncl_cpp: [WARN    ] [gov.nasa.SharedMemorySimInterfacePlugin.findUrdfSensors] Imu sensor head_imu_sensor doesn't have <imuTransform> tag. It is likely that the data you receive from this sensor will be incorrect.
[ INFO] [1478555471.427918735, 6.116000000]: SharedMemorySimInterfacePlugin: Loading complete!
[ INFO] [1478555471.928210210, 6.116000000]: imu plugin missing <frameName>, defaults to <bodyName>
[ INFO] [1478555471.946729753, 6.116000000]: imu plugin missing <frameName>, defaults to <bodyName>
[ INFO] [1478555471.947519661, 6.116000000]: imu plugin missing <frameName>, defaults to <bodyName>
[Wrn] [msgs.cc:1793] Conversion of sensor type[imu] not suppported.
[Wrn] [msgs.cc:1793] Conversion of sensor type[imu] not suppported.
[Wrn] [msgs.cc:1793] Conversion of sensor type[imu] not suppported.
[Wrn] [msgs.cc:1793] Conversion of sensor type[imu] not suppported.
[Wrn] [msgs.cc:1793] Conversion of sensor type[multicamera] not suppported.
[Wrn] [msgs.cc:1793] Conversion of sensor type[gpu_ray] not suppported.
[Wrn] [msgs.cc:1793] Conversion of sensor type[force_torque] not suppported.
[Wrn] [msgs.cc:1793] Conversion of sensor type[force_torque] not suppported.
:parseYaml UP-TO-DATE
:runJavaDelegate
Loading robot model from: 'models/val_description/sdf/valkyrie_sim.sdf'
[INFO] (NetworkParameters.java:38): Looking for network parameters in network parameters file at /opt/ros/indigo/share/ihmc_valkyrie_ros/configurations/IHMCNetworkParametersSim.ini
[INFO] (NetworkParameters.java:42): Found Network parameters file at /opt/ros/indigo/share/ihmc_valkyrie_ros/configurations/IHMCNetworkParametersSim.ini
[INFO] (NetworkParameters.java:69): Looking for network parameters in environment variables
[INFO] (NetworkParameters.java:70): Environment variables will override entries in the network parameters file.
Connecting to controller using TCP on localhost
[WARN] YoVariable: desiredMomentumRateLinearX is getting created with a null registry
[WARN] YoVariable: desiredMomentumRateLinearY is getting created with a null registry
[WARN] YoVariable: desiredMomentumRateLinearZ is getting created with a null registry
[WARN] YoVariable: achievedMomentumRateLinearX is getting created with a null registry
[WARN] YoVariable: achievedMomentumRateLinearY is getting created with a null registry
[WARN] YoVariable: achievedMomentumRateLinearZ is getting created with a null registry
[WARN] YoVariable: residualRootJointForceX is getting created with a null registry
[WARN] YoVariable: residualRootJointForceY is getting created with a null registry
[WARN] YoVariable: residualRootJointForceZ is getting created with a null registry
[WARN] YoVariable: residualRootJointTorqueX is getting created with a null registry
[WARN] YoVariable: residualRootJointTorqueY is getting created with a null registry
[WARN] YoVariable: residualRootJointTorqueZ is getting created with a null registry
log4j:WARN No appenders could be found for logger (org.ros.internal.node.client.Registrar).
log4j:WARN Please initialize the log4j system properly.
IHMC ROS API node successfully started.
> Building 50% > :runJavaDelegate

@osrf-migration
Copy link
Author

Original comment by dan (Bitbucket: dan77062).


Now, if I load the modified launch file as in the comment above, then run the rest of the original launch file as a separate launch file, errors show up and the robot eventually collapses.

Here is the separate launch file, followed by the log from its terminal window, followed by the log from the terminal window where the first launch file (see comment above) is running.

#!python

	<launch>
	  <arg name="debug" default="false" />
	  <arg name="extra_gazebo_args" default=""/>
	  <arg name="init" default="false" />
	  <arg name="paused" default="false" />
	  <arg name="use_local_build" default="false" />
	  <arg name="verbose" default="true" />
	  <arg name="walk_test" default="false"/>
	  <arg name="world_name" default="$(find srcsim)/worlds/qual2.world" />
	  
	  <include file="$(find ihmc_valkyrie_ros)/launch/val_wholebody_control_gazebo.launch"/>

	  <group if="$(arg init)">
		<node name="startup_robot" pkg="srcsim" type="init_robot.sh" args="$(arg walk_test)" output="screen"/>
	  </group>
	</launch>

log from this terminal window:

#!python

dbarry@x1:/opt/ros/indigo/share/srcsim/launch$ roslaunch srcsim myQshort.launch   extra_gazebo_args:="-r" init:="true"
... logging to /home/dbarry/.ros/log/3c127a36-a537-11e6-9ddf-e4a47193b50c/roslaunch-x1-22095.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://127.0.0.1:34585/

SUMMARY
========

PARAMETERS
 * /ihmc_valkyrie_control_java_bridge/jvm_args: -Djava.class.path...
 * /ihmc_valkyrie_control_java_bridge/main_class: us.ihmc.valkyrieR...
 * /ihmc_valkyrie_control_java_bridge/type: ihmc_ros_control/...
 * /ihmc_valkyrie_control_java_bridge/working_dir: /home/dbarry/valk...
 * /joint_state_controller/publish_rate: 50
 * /joint_state_controller/type: joint_state_contr...
 * /rosdistro: indigo
 * /rosversion: 1.11.20

NODES
  /
    controller_spawner_x1_22095_6947010783665914578 (controller_manager/spawner)
    startup_robot (srcsim/init_robot.sh)

ROS_MASTER_URI=http://localhost:11311

core service [/rosout] found
process[controller_spawner_x1_22095_6947010783665914578-1]: started with pid [22113]
wait 60s for system to load
process[startup_robot-2]: started with pid [22114]
[INFO] [WallTime: 1478556824.954298] [0.000000] Controller Spawner: Waiting for service controller_manager/load_controller
[INFO] [WallTime: 1478556824.957467] [0.000000] Controller Spawner: Waiting for service controller_manager/switch_controller
[INFO] [WallTime: 1478556824.959027] [0.000000] Controller Spawner: Waiting for service controller_manager/unload_controller
[INFO] [WallTime: 1478556824.960807] [0.000000] Loading controller: ihmc_valkyrie_control_java_bridge
[ERROR] [WallTime: 1478556826.601918] [21.537000] Failed to load ihmc_valkyrie_control_java_bridge
[INFO] [WallTime: 1478556826.602379] [21.537000] Controller Spawner: Loaded controllers: 
[INFO] [WallTime: 1478556826.823066] [21.587000] Started controllers: 
lower harness
publishing and latching message for 3.0 seconds
switch to high level control after 20 seconds
publishing and latching message for 3.0 seconds
detach in 5 seconds
done
[startup_robot-2] process has finished cleanly
log file: /home/dbarry/.ros/log/3c127a36-a537-11e6-9ddf-e4a47193b50c/startup_robot-2*.log
publishing and latching message for 3.0 seconds

and the continuation of the log from the terminal window where the shortened launch file from the comment above is running:

#!python

> Building 50% > :runJavaDelegate[ INFO] [1478556825.024713139, 21.250000000]: Starting JVM with arguments: -Djava.class.path=ValkyrieController.jar -XX:+UseSerialGC -Xmx4g -Xms4g -XX:NewSize=3g -XX:MaxNewSize=3g -XX:CompileThreshold=1000 -verbosegc -Djava.library.path=lib/
Starting Java VM from path  /home/dbarry/valkyrie
Started Java VM: success
[ERROR] [1478556825.586647120, 21.327000000]: Nov 07, 2016 5:13:45 PM us.ihmc.valkyrieRosControl.ValkyrieAffinity <init>
[ERROR] [1478556825.586701008, 21.327000000]: SEVERE: WARNING: Hyper-Threading is enabled. Expect higher amounts of jitter
[ERROR] [1478556825.590066749, 21.328000000]: Cannot create controller object
[ERROR] [1478556825.590127477, 21.328000000]: Initializing controller 'ihmc_valkyrie_control_java_bridge' failed
[ INFO] [1478556825.590388801, 21.328000000]: Stopping VM
[ERROR] [1478556825.591343194, 21.328000000]: Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
[ERROR] [1478556825.591761442, 21.328000000]: 	at java.util.ArrayList.rangeCheck(ArrayList.java:635)
[ERROR] [1478556825.592029007, 21.328000000]: 	at java.util.ArrayList.get(ArrayList.java:411)
[ERROR] [1478556825.592177665, 21.328000000]: 	at us.ihmc.affinity.Package.getCore(Package.java:45)
[ERROR] [1478556825.599444161, 21.328000000]: 	at us.ihmc.valkyrieRosControl.ValkyrieAffinity.<init>(ValkyrieAffinity.java:31)
[ERROR] [1478556825.600246263, 21.328000000]: 	at us.ihmc.valkyrieRosControl.ValkyrieRosControlController.<init>(ValkyrieRosControlController.java:107)

@osrf-migration
Copy link
Author

Original comment by Jordan Lack (Bitbucket: jordanlack).


@scpeters has this launch configuration worked reliably for you all?

@dan77062 try launching the full thing again and in another terminal run tail -n 50 -f /var/log/nasa_common_logging.log and keep an eye on the log messages as it launches to see if there are some log messages that are important but aren't getting to your console maybe.

@osrf-migration
Copy link
Author

Original comment by dan (Bitbucket: dan77062).


Jordan, there is no log file by that name in /var/log

@osrf-migration
Copy link
Author

Original comment by Jordan Lack (Bitbucket: jordanlack).


Ah ok, this is helpful! Disregard my previous request. How many cores are on your processor? IHMC's controller does some fancy core isolation stuff, so if you don't have enough cores then they can't pin their processes to cores that don't exist.

@scpeters it should be clearly stated in the documentation that they must 4 cores to run this stuff. Since IHMC's controller/estimator steal 2 cores and those are hardcoded as cores(zero indexed) 1 & 2 I think, so if they don't have those cores then none of this will work.

@osrf-migration
Copy link
Author

Original comment by dan (Bitbucket: dan77062).


4 cores. I am using a Lenovo X1 carbon with an Intel Core i7-6600U CPU, 2.60 GHz x 4, with 16 GB of RAM, and 64 bit Ubuntu 14.04

@osrf-migration
Copy link
Author

Original comment by Jordan Lack (Bitbucket: jordanlack).


Is this Ubuntu in a virtual machine?

@osrf-migration
Copy link
Author

Original comment by dan (Bitbucket: dan77062).


no not a VM.
Also, it is a full up, brand new install of 14.04, with desktop Indigo

@osrf-migration
Copy link
Author

Original comment by Jordan Lack (Bitbucket: jordanlack).


Hmm, ok well then i'm a bit stumped as to why this is happening then. What's happening is, in IHMC's java code, the following line controlThreadProcessor = socket.getCore(2).getDefaultProcessor(); is failing because it thinks you only have 2 cores, so with zero indexing core 2 doesn't exist.

@osrf-migration
Copy link
Author

Original comment by dan (Bitbucket: dan77062).


interesting. Top shows all 4 cores are available and running. See below.
It is a dual boot machine with Windows 10, but I don't see how that could matter.

#!python

dbarry@x1:/var/log$ cat /proc/cpuinfo | grep processor | wc -l
4
#!python

dbarry@x1:/var/log$ lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                4
On-line CPU(s) list:   0-3
Thread(s) per core:    2
Core(s) per socket:    2
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 78
Stepping:              3
CPU MHz:               1331.093
BogoMIPS:              5615.85
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              4096K
NUMA node0 CPU(s):     0-3

dbarry@x1:/var/log$ top

top - 18:21:47 up 21:44,  4 users,  load average: 0.17, 0.17, 0.45
Tasks: 270 total,   1 running, 268 sleeping,   0 stopped,   1 zombie
%Cpu0  :  3.4 us,  0.3 sy,  0.0 ni, 95.3 id,  1.0 wa,  0.0 hi,  0.0 si,  0.0 st
%Cpu1  :  2.7 us,  0.7 sy,  0.0 ni, 96.7 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
%Cpu2  :  3.0 us,  1.0 sy,  0.0 ni, 95.4 id,  0.7 wa,  0.0 hi,  0.0 si,  0.0 st
%Cpu3  :  2.3 us,  1.0 sy,  0.0 ni, 96.7 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem:  16296776 total, 10715200 used,  5581576 free,   416932 buffers
KiB Swap: 16641020 total,        0 used, 16641020 free.  4269696 cached Mem

@osrf-migration
Copy link
Author

Original comment by sringer99 (Bitbucket: sringer99).


Do not know if this will help, but I am having the same issues. controller_manager crashes. zero successes.

Based on this thread and a little poking around I doubled the sleep time in /opt/nasa/indigo/share/val_deploy/scripts/delayed_roslaunch.sh

#!/bin/bash

echo "delaying: $1 seconds"

sleep $1

sleep $1 # Added this extra line

shift

echo "starting: roslaunch $@"

roslaunch $@

Still get lots of error messages but the walk test now works about 90% of the time.

I have a new AMD FX 6300 with 6 cores, 16GB memory, 256GB SSD drive, running on a ASUS M5A97 motherboard.

@osrf-migration
Copy link
Author

Original comment by Jordan Lack (Bitbucket: jordanlack).


@sringer99 that probably means we need to extend some of our sleeps to give some nodes more time to spin up.

@osrf-migration
Copy link
Author

Original comment by dan (Bitbucket: dan77062).


I wrote a short java script to check on the processors available to Java. It prints out 4.

#!python

class checkProcessors {
	public static void main(String[] args) {
		int processors = Runtime.getRuntime().availableProcessors();
		System.out.println(processors);
	}
}

@osrf-migration
Copy link
Author

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


Here's some extra debugging steps:

cat /sys/devices/system/cpu/online

and

cat /sys/devices/system/cpu/cpu0/topology/physical_package_id
cat /sys/devices/system/cpu/cpu1/topology/physical_package_id
cat /sys/devices/system/cpu/cpu2/topology/physical_package_id
cat /sys/devices/system/cpu/cpu3/topology/physical_package_id

cc @dljsjr

@osrf-migration
Copy link
Author

Original comment by dan (Bitbucket: dan77062).


The first returns 0-3. However all the others return 0. What's up with that?
The core_id results are 0, 1, 0, 1 for cores 0, 1, 2, 3 respectively.

#!python

cat /sys/devices/system/cpu/online
0-3

cat /sys/devices/system/cpu/cpu0/topology/physical_package_id
0

cat /sys/devices/system/cpu/cpu1/topology/physical_package_id
0

cat /sys/devices/system/cpu/cpu2/topology/physical_package_id
0

cat /sys/devices/system/cpu/cpu3/topology/physical_package_id
0

@osrf-migration
Copy link
Author

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


The physical_package_id should be 0, as it means the socket that the CPU's are plugged into. My core_id's are: 0 1 2 3 0 1 2 3 for 0-7, so that looks fine.

@osrf-migration
Copy link
Author

Original comment by Jedediyah Williams (Bitbucket: Jedediyah).


I'll chime in with @dan77062 @sringer99 and @T_AL, as I'm running into what looks like the identical problem getting the controller to run. I'm also on a fresh install of Ubuntu 14.04 / Indigo, 4 cores and 32 GB RAM, and used the updated install instructions.

@sringer99, I'm going to try out adding that extra sleep time.

@osrf-migration
Copy link
Author

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


Are you all using laptops?

@osrf-migration
Copy link
Author

Original comment by dan (Bitbucket: dan77062).


yes, lenovo x1 carbon laptop and it turns out the Intel Core i7-6600U CPU does indeed have only 2 cores, 4 threads.
Unfortunately, I am traveling, away from home, until after Thanksgiving and planned to work on this project during a bunch of long airplane flights. :/
Will it really not work with this machine??

@osrf-migration
Copy link
Author

Original comment by Jordan Lack (Bitbucket: jordanlack).


For those having the problem where it launches successfully sometimes and sometimes you get the following exception,

#!bash

exception subscribing to JointAPS_Angle_Rad : /pelvis/waist/JointAPS_Angle_Rad has not been registered.
exception subscribing to JointAPS_Vel_Radps : /pelvis/waist/JointAPS_Vel_Radps has not been registered.
exception subscribing to JointTorque_Des_Nm : /pelvis/waist/JointTorque_Des_Nm has not been registered.
exception subscribing to JointTorque_Meas_Nm : /pelvis/waist/JointTorque_Meas_Nm has not been registered.
exception subscribing to Position_Des_Rad : /pelvis/waist/Position_Des_Rad has not been registered.
exception subscribing to Velocity_Des_Radps : /pelvis/waist/Velocity_Des_Radps has not been registered.
�[31m[ERROR] [1478572407.598196595]:  Exception encountered while attempting to add an actuator! Check your URDF for correct XML formatting!�[0m

I have some debug steps that'll help me be certain what the problem is. For the debug, do roslaunch val_gazebo val_sim.launch, but first comment out the following lines in val_sim.launch,

#!xml

<include file="$(find val_gazebo)/launch/val_empty_world.launch">
      <arg name="paused" value="$(arg paused)"/>
      <arg name="use_sim_time" value="$(arg use_sim_time)"/>
      <arg name="extra_gazebo_args" default="$(arg extra_gazebo_args)"/>
      <arg name="gui" value="$(arg gui)" />
      <arg name="headless" value="$(arg headless)"/>
      <arg name="debug" value="$(arg debug)" />
      <arg name="physics" default="$(arg physics)"/>
      <arg name="verbose" value="$(arg verbose)"/>
      <arg name="world_name" value="$(arg world_name)"/>
    </include>

Then launch it multiple times and see if you get that exception still or if it launches cleanly 100% of the time. If it is still failing occasionally, in the following line change the 4 to larger values and see if that fixes it,

#!xml

<node name="$(anon controller_manager)" pkg="val_deploy" type="delayed_roslaunch.sh" args="4 val_deploy val_control_sim.launch controller_manager_looprate:=$(arg controller_manager_looprate)" output="screen"/>

Let me know how it goes!

@osrf-migration
Copy link
Author

Original comment by Erica K (Bitbucket: Erica K).


Jordan, I've had 100% failure up to now, but I pass your debug test (even without the larger values).

@osrf-migration
Copy link
Author

Original comment by DouglasS (Bitbucket: DouglasS).


Hey folks, just wanted to chime in on what's happening from the IHMC side of things. At the very least, this definitely relates to the problem that @dan77062 is having.

The control algorithm for the robot is designed to run in an environment with a real-time kernel patch and core isolation. On the physical Val hardware this requires a quad core processor with hyper threading and turboboost disabled. We reserve Core 0 for IRQ/interrupt handling, cores 1 and 2 for our state estimation and control algorithm threads respectively, and core 4 for all other processes that have to run. Note that these are physical cores, not virtual cores, because hyper threading is problematic in a realtime environment which is why we disable it on the real robot. This is why we inspect the sysfs for the computer topology instead of relying on proc or top or the method that Dan used in his short Java program.

Obviously all of that isn't really needed in simulation because we run in lock-step with the physics. We're now tracking this issue as well: ihmcrobotics/ihmc-open-robotics-software#99

We should have a fix for it and a release in the next few days.

@osrf-migration
Copy link
Author

Original comment by Jordan Lack (Bitbucket: jordanlack).


It is likely that your running into the same problem that @dan77062 is, which is due to you not having enough physical cores on your processor. A way to verify that is to do what @dan77062 did above and launch the IHMC controller stuff separately and you should get this error,

#!bash

[ERROR] [1478556825.591343194, 21.328000000]: Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
[ERROR] [1478556825.591761442, 21.328000000]:   at java.util.ArrayList.rangeCheck(ArrayList.java:635)
[ERROR] [1478556825.592029007, 21.328000000]:   at java.util.ArrayList.get(ArrayList.java:411)
[ERROR] [1478556825.592177665, 21.328000000]:   at us.ihmc.affinity.Package.getCore(Package.java:45)
[ERROR] [1478556825.599444161, 21.328000000]:   at us.ihmc.valkyrieRosControl.ValkyrieAffinity.<init>(ValkyrieAffinity.java:31)
[ERROR] [1478556825.600246263, 21.328000000]:   at us.ihmc.valkyrieRosControl.ValkyrieRosControlController.<init>(ValkyrieRosControlController.java:107)

@osrf-migration
Copy link
Author

Original comment by sringer99 (Bitbucket: sringer99).


I can get it to run 100% of the time at 8 and 4 seconds. Fails every time at 2 seconds with the same error as we have been getting. Note: I have the doubler on the delay script.

roslaunch val_gazebo val_sim.launch

... logging to /home/sringer/.ros/log/5a68a7cc-a5d1-11e6-bc2b-f832e4bba978/roslaunch-Mingo-Mtn-Robotics-24044.log

Checking log directory for disk usage. This may take awhile.

Press Ctrl-C to interrupt

Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://Mingo-Mtn-Robotics:43310/

SUMMARY

========

PARAMETERS

  • /robot_description: <?xml version="1....

  • /rosdistro: indigo

  • /rosversion: 1.11.20

NODES

/

control_py_Mingo_Mtn_Robotics_24044_828331878780894790 (robonet_tools/control)

controller_manager_Mingo_Mtn_Robotics_24044_2827938922632370286 (val_deploy/delayed_roslaunch.sh)

smtcore_Mingo_Mtn_Robotics_24044_2209162283755310182 (shared_memory_transport/smtcore)

auto-starting new master

process[master]: started with pid [24056]

ROS_MASTER_URI=http://localhost:11311

setting /run_id to 5a68a7cc-a5d1-11e6-bc2b-f832e4bba978

process[rosout-1]: started with pid [24069]

started core service [/rosout]

process[smtcore_Mingo_Mtn_Robotics_24044_2209162283755310182-2]: started with pid [24084]

process[control_py_Mingo_Mtn_Robotics_24044_828331878780894790-3]: started with pid [24087]

process[controller_manager_Mingo_Mtn_Robotics_24044_2827938922632370286-4]: started with pid [24088]

delaying: 1 seconds

Log file /home/sringer/.log already exists, proceeding...

Log file /home/sringer/.log already exists, proceeding...

starting: roslaunch val_deploy val_control_sim.launch controller_manager_looprate:=500
__name:=controller_manager_Mingo_Mtn_Robotics_24044_2827938922632370286

__log:=/home/sringer/.ros/log/5a68a7cc-a5d1-11e6-bc2b-f832e4bba978/controller_manager_Mingo_Mtn_Robotics_24044_2827938922632370286-4.log

... logging to /home/sringer/.ros/log/5a68a7cc-a5d1-11e6-bc2b-f832e4bba978/roslaunch-Mingo-Mtn-Robotics-24096.log

Checking log directory for disk usage. This may take awhile.

Press Ctrl-C to interrupt

Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://Mingo-Mtn-Robotics:40870/

SUMMARY

========

PARAMETERS

  • /rosdistro: indigo

  • /rosversion: 1.11.20

NODES

/

controller_manager_Mingo_Mtn_Robotics_24096_6578599215757810822 (val_controller_manager_rtt/controller_exec)

ROS_MASTER_URI=http://localhost:11311

core service [/rosout] found

process[controller_manager_Mingo_Mtn_Robotics_24096_6578599215757810822-1]: started with pid [24114]

exception subscribing to JointAPS_Angle_Rad : /pelvis/waist/JointAPS_Angle_Rad has not been registered.

exception subscribing to JointAPS_Vel_Radps : /pelvis/waist/JointAPS_Vel_Radps has not been registered.

exception subscribing to JointTorque_Des_Nm : /pelvis/waist/JointTorque_Des_Nm has not been registered.

exception subscribing to JointTorque_Meas_Nm : /pelvis/waist/JointTorque_Meas_Nm has not been registered.

exception subscribing to Position_Des_Rad : /pelvis/waist/Position_Des_Rad has not been registered.

exception subscribing to Velocity_Des_Radps : /pelvis/waist/Velocity_Des_Radps has not been registered.

2016-11-08 08:35:29 localhost ncl_cpp: [ERROR ] [gov.nasa.RobotInterface.addJointsAndActuators] Exception encountered while attempting to add an actuator! Check your
URDF for correct XML
formatting!

[ERROR] [1478622929.865724729]: Exception encountered while attempting to add an actuator! Check your URDF for correct XML formatting!

2016-11-08 08:35:29 localhost ncl_cpp: [ERROR ] [gov.nasa.HardwareInterface.makeHandle] Robot Hardware has failed Initialized properly.

[ERROR] [1478622929.866061262]: Fatal exception error encountered initializing RobotHardwareInterface, exiting

2016-11-08 08:35:29 localhost ncl_cpp: [FATAL ] [gov.nasa.ControllerExec.ORO_main] Error encountered during configure hook for controller_manager component!

================================================================================REQUIRED process

[controller_manager_Mingo_Mtn_Robotics_24096_6578599215757810822-1] has died!

process has died [pid 24114, exit code 1, cmd /opt/nasa/indigo/lib/val_controller_manager_rtt/controller_exec --rate 500 -s

__name:=controller_manager_Mingo_Mtn_Robotics_24096_6578599215757810822 __log:=/home/sringer/.ros/log/5a68a7cc-a5d1-11e6-
bc2bf832e4bba978/controller_manager_Mingo_Mtn_Robotics_24096_6578599215757810822-1.log].

log file: /home/sringer/.ros/log/5a68a7cc-a5d1-11e6-bc2b-f832e4bba978/controller_manager_Mingo_Mtn_Robotics_24096_6578599215757810822-1*.log

Initiating shutdown!

================================================================================
[controller_manager_Mingo_Mtn_Robotics_24096_6578599215757810822-1] killing on exit

shutting down processing monitor...

... shutting down processing monitor complete

done

[controller_manager_Mingo_Mtn_Robotics_24044_2827938922632370286-4] process has finished cleanly

log file: /home/sringer/.ros/log/5a68a7cc-a5d1-11e6-bc2b-f832e4bba978/controller_manager_Mingo_Mtn_Robotics_24044_2827938922632370286-4*.log

^C[control_py_Mingo_Mtn_Robotics_24044_828331878780894790-3] killing on exit

[smtcore_Mingo_Mtn_Robotics_24044_2209162283755310182-2] killing on exit

[rosout-1] killing on exit

[master] killing on exit

shutting down processing monitor...

... shutting down processing monitor complete

done

@osrf-migration
Copy link
Author

Original comment by Jordan Lack (Bitbucket: jordanlack).


Ok thanks @sringer99. I'm a bit confused as to why those delays need to be so long, because the processes that are being waited for are pretty quick to spin up. Only guess I have is it's something to do with roslaunch or maybe your computer in general? Anywho, i'll extend those wait times and work them into our next release. Thanks for taking the time to debug a bit!

@osrf-migration
Copy link
Author

Original comment by sringer99 (Bitbucket: sringer99).


  • set attachment to "roslaunch-Mingo-Mtn-Robotics-24096.log"

Here are the log files for my last fail

@osrf-migration
Copy link
Author

Original comment by Rud Merriam (Bitbucket: rmerriam).


Jordan, could you make the delays arguments for the startup so those who don't have the problem can start the system more quickly?

@osrf-migration
Copy link
Author

Original comment by Jordan Lack (Bitbucket: jordanlack).


Yeah that's a good idea. I'll add that in

@osrf-migration
Copy link
Author

Original comment by dan (Bitbucket: dan77062).


Douglas Stephen,
Appreciate the help on this one and look forward to trying out the fixed version.

@osrf-migration
Copy link
Author

Original comment by Erica Tiberia (Bitbucket: T_AL).


Memory: 11.6 GIB
Processor Intel Core i5-6200U CPU@ 2.30GHz x4
OS-type 64-bit

I have increased the delay in (delayed_roslaunch.sh) file to 8 seconds and I commented out the lines to lower the harness and detach Val in the (init_robot.sh) file.
Everything loads properly and I can send commands to lower the harness and detach Val.
I can get the sensor data, camera etc. All the topics are there as you can see below
but any message that I publish to the ihmc_ros/valkyrie/control has no effect.
I have attached the image of rqt_graph showing all the nodes, it includes the published action for Val to move his right arm.Active_Nodes.png

  • mario@mario-Inspiron-5559:~$ rostopic list
  • /clock
  • /force_torque_states
  • /gazebo/link_states
  • /gazebo/model_states
  • /gazebo/parameter_descriptions
  • /gazebo/parameter_updates
  • /gazebo/set_link_state
  • /gazebo/set_model_state
  • /hardware_joint_commands
  • /hardware_joint_states
  • /ihmc_ros/localization/pelvis_odom_pose_correction
  • /ihmc_ros/localization/pelvis_pose_correction
  • /ihmc_ros/valkyrie/control/abort_walking
  • /ihmc_ros/valkyrie/control/arm_desired_joint_accelerations
  • /ihmc_ros/valkyrie/control/arm_trajectory
  • /ihmc_ros/valkyrie/control/chest_trajectory
  • /ihmc_ros/valkyrie/control/end_effector_load_bearing
  • /ihmc_ros/valkyrie/control/foot_trajectory
  • /ihmc_ros/valkyrie/control/footstep_list
  • /ihmc_ros/valkyrie/control/go_home
  • /ihmc_ros/valkyrie/control/hand_desired_configuration
  • /ihmc_ros/valkyrie/control/hand_trajectory
  • /ihmc_ros/valkyrie/control/head_trajectory
  • /ihmc_ros/valkyrie/control/high_level_state
  • /ihmc_ros/valkyrie/control/low_level_control_mode
  • /ihmc_ros/valkyrie/control/neck_desired_acceleration
  • /ihmc_ros/valkyrie/control/neck_trajectory
  • /ihmc_ros/valkyrie/control/pause_walking
  • /ihmc_ros/valkyrie/control/pelvis_height_trajectory
  • /ihmc_ros/valkyrie/control/pelvis_orientation_trajectory
  • /ihmc_ros/valkyrie/control/pelvis_trajectory
  • /ihmc_ros/valkyrie/control/request_stop
  • /ihmc_ros/valkyrie/control/stop_all_trajectories
  • /ihmc_ros/valkyrie/control/whole_body_trajectory
  • /ihmc_ros/valkyrie/output/behavior
  • /ihmc_ros/valkyrie/output/capturability/capture_point
  • /ihmc_ros/valkyrie/output/capturability/center_of_mass
  • /ihmc_ros/valkyrie/output/capturability/desired_capture_point
  • /ihmc_ros/valkyrie/output/capturability/is_in_double_support
  • /ihmc_ros/valkyrie/output/capturability/left_foot_support_polygon
  • /ihmc_ros/valkyrie/output/capturability/right_foot_support_polygon
  • /ihmc_ros/valkyrie/output/foot_force_sensor/left
  • /ihmc_ros/valkyrie/output/foot_force_sensor/right
  • /ihmc_ros/valkyrie/output/footstep_status
  • /ihmc_ros/valkyrie/output/high_level_state
  • /ihmc_ros/valkyrie/output/high_level_state_change
  • /ihmc_ros/valkyrie/output/imu/pelvis_pelvisMiddleImu
  • /ihmc_ros/valkyrie/output/imu/pelvis_pelvisRearImu
  • /ihmc_ros/valkyrie/output/imu/torso_leftTorsoImu
  • /ihmc_ros/valkyrie/output/imu/upperNeckPitchLink_head_imu_sensor
  • /ihmc_ros/valkyrie/output/joint_states
  • /ihmc_ros/valkyrie/output/robot_motion_status
  • /ihmc_ros/valkyrie/output/robot_pose
  • /ihmc_ros/valkyrie/output/walking_status
  • /imu_states
  • /leftTorsoImu/imu
  • /multisense/camera/left/camera_info
  • /multisense/camera/left/image_raw
  • /multisense/camera/left/image_raw/compressed
  • /multisense/camera/left/image_raw/compressed/parameter_descriptions
  • /multisense/camera/left/image_raw/compressed/parameter_updates
  • /multisense/camera/left/image_raw/compressedDepth
  • /multisense/camera/left/image_raw/compressedDepth/parameter_descriptions
  • /multisense/camera/left/image_raw/compressedDepth/parameter_updates
  • /multisense/camera/left/image_raw/theora
  • /multisense/camera/left/image_raw/theora/parameter_descriptions
  • /multisense/camera/left/image_raw/theora/parameter_updates
  • /multisense/camera/left/parameter_descriptions
  • /multisense/camera/left/parameter_updates
  • /multisense/camera/right/camera_info
  • /multisense/camera/right/image_raw
  • /multisense/camera/right/image_raw/compressed
  • /multisense/camera/right/image_raw/compressed/parameter_descriptions
  • /multisense/camera/right/image_raw/compressed/parameter_updates
  • /multisense/camera/right/image_raw/compressedDepth
  • /multisense/camera/right/image_raw/compressedDepth/parameter_descriptions
  • /multisense/camera/right/image_raw/compressedDepth/parameter_updates
  • /multisense/camera/right/image_raw/theora
  • /multisense/camera/right/image_raw/theora/parameter_descriptions
  • /multisense/camera/right/image_raw/theora/parameter_updates
  • /multisense/camera/right/parameter_descriptions
  • /multisense/camera/right/parameter_updates
  • /multisense/fps
  • /multisense/imu
  • /multisense/joint_states
  • /multisense/lidar_scan
  • /multisense/set_fps
  • /multisense/set_spindle_speed
  • /pelvisMiddleImu/imu
  • /pelvisRearImu/imu
  • /rosout
  • /rosout_agg
  • /rtt_period_overflow
  • /rtt_rate
  • /statistics
  • /tf
  • /tf_static
  • /valkyrie/harness/detach
  • /valkyrie/harness/velocity

@osrf-migration
Copy link
Author

Original comment by Jordan Lack (Bitbucket: jordanlack).


Erica could you post that as its own issue? @nmertins should probably see that as well

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


  • set assignee_account_id to "557058:5de38267-b118-494c-aa76-4fab35448816"
  • set assignee to "scpeters (Bitbucket: scpeters, GitHub: scpeters)"

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


Issue #16 was marked as a duplicate of this issue.

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


Issue #21 was marked as a duplicate of this issue.

@osrf-migration
Copy link
Author

Original comment by kapoor_amita@yahoo.com (Bitbucket: Amita94).


Attached is the roslaunch log and rqt_graph image when val falls (90% of time)rosgraph_qual1.png

Script started on Monday 21 November 2016 10:54:55 PM IST
... logging to /home/am/.ros/log/6b65e308-b00f-11e6-af54-685b35a00088/roslaunch-am-Macmini-10908.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
�]2;/opt/ros/indigo/share/srcsim/launch/qual1.launch�
�[1mstarted roslaunch server http://am-Macmini:35969/�[0m

SUMMARY

PARAMETERS

  • /ihmc_ros/robot_name: valkyrie
  • /ihmc_ros/valkyrie/left_arm_joint_names: ['leftShoulderPit...
  • /ihmc_ros/valkyrie/left_foot_frame_name: leftFoot
  • /ihmc_ros/valkyrie/right_arm_joint_names: ['rightShoulderPi...
  • /ihmc_ros/valkyrie/right_foot_frame_name: rightFoot
  • /ihmc_valkyrie_control_java_bridge/jvm_args: -Djava.class.path...
  • /ihmc_valkyrie_control_java_bridge/main_class: us.ihmc.valkyrieR...
  • /ihmc_valkyrie_control_java_bridge/type: ihmc_ros_control/...
  • /ihmc_valkyrie_control_java_bridge/working_dir: /home/am/valkyrie
  • /joint_state_controller/publish_rate: 50
  • /joint_state_controller/type: joint_state_contr...
  • /robot_description: <?xml version="1....
  • /rosdistro: indigo
  • /rosversion: 1.11.20
  • /use_sim_time: True
  • /valkyrie/robot_description: <?xml version="1....

NODES
/
IHMCValkyrieROSAPI (ihmc_ros_java_adapter/gradlew)
control_py_am_Macmini_10908_6429243349245551040 (robonet_tools/control)
controller_manager_am_Macmini_10908_1874398186530051490 (val_deploy/delayed_roslaunch.sh)
controller_spawner_am_Macmini_10908_2491801057726095336 (controller_manager/spawner)
gazebo (gazebo_ros/gzserver)
gazebo_gui (gazebo_ros/gzclient)
robot_state_publisher (robot_state_publisher/state_publisher)
smtcore_am_Macmini_10908_3371504248313502897 (shared_memory_transport/smtcore)
startup_robot (srcsim/init_robot.sh)
urdf_spawner_am_Macmini_10908_1798110691714769919 (val_deploy/delayed_roslaunch.sh)

auto-starting new master
�[1mprocess[master]: started with pid [10920]�[0m
�[1mROS_MASTER_URI=http://localhost:11311�[0m
�]2;/opt/ros/indigo/share/srcsim/launch/qual1.launch http://localhost:11311�
�[1msetting /run_id to 6b65e308-b00f-11e6-af54-685b35a00088�[0m
�[1mprocess[rosout-1]: started with pid [10933]�[0m
started core service [/rosout]
�[1mprocess[smtcore_am_Macmini_10908_3371504248313502897-2]: started with pid [10952]�[0m
�[1mprocess[control_py_am_Macmini_10908_6429243349245551040-3]: started with pid [10958]�[0m
�[1mprocess[controller_manager_am_Macmini_10908_1874398186530051490-4]: started with pid [10959]�[0m
delaying: 4 seconds
�[1mprocess[gazebo-5]: started with pid [10961]�[0m
�[1mprocess[gazebo_gui-6]: started with pid [10965]�[0m
�[1mprocess[urdf_spawner_am_Macmini_10908_1798110691714769919-7]: started with pid [10969]�[0m
delaying: 6 seconds
�[1mprocess[robot_state_publisher-8]: started with pid [10971]�[0m
�[1mprocess[IHMCValkyrieROSAPI-9]: started with pid [10972]�[0m
�[1mprocess[controller_spawner_am_Macmini_10908_2491801057726095336-10]: started with pid [10976]�[0m
wait 60s for system to load
�[1mprocess[startup_robot-11]: started with pid [10996]�[0m
Log file /home/am/.log already exists, proceeding...
Log file /home/am/.log already exists, proceeding...
Gazebo multi-robot simulator, version 7.4.0
Copyright (C) 2012-2016 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org

�[0m[ INFO] [1479749096.239155720]: Finished loading Gazebo ROS API Plugin.�[0m
�[1;32m[Msg] �[0m�[1;32mWaiting for master.�[0m�[1;32m
�[0m�[1;32m�[0m�[0m[ INFO] [1479749096.240310704]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting...�[0m
�[1;32m[Msg] �[0m�[1;32mConnected to gazebo master @ �[0m�[1;32mhttp://127.0.0.1:11345�[0m�[1;32m
�[0m�[1;32m�[0m�[1;32m[Msg] �[0m�[1;32mPublicized address: �[0m�[1;32m192.168.1.3�[0m�[1;32m
�[0m[INFO] [WallTime: 1479749096.518506] [0.000000] Controller Spawner: Waiting for service controller_manager/load_controller
�[1m> Loading�[22m�[1m > buildSrc�[22m�[1m > settings�[22m�[11D�[0K�[0m�[1;32m�[0m�[0m[ INFO] [1479749097.601352082, 0.022000000]: waitForService: Service [/gazebo/set_physics_properties] is now available.�[0m
�[0m[ INFO] [1479749097.677227218, 0.088000000]: Physics dynamic reconfigure ready.�[0m
�[1m > Resolving dependencies ':runtime'�[22m�[36D�[0K�[1m > Resolving dependencies 'detachedConfiguration1'�[22m�[50D�[0K�[1m > :buildSrc:compileJava�[22m�[24D�[0K�[20D�[0K:buildSrc:compileJava
�[1m> Loading > buildSrc�[22m�[20D�[0K�[1A�[22C�[33mUP-TO-DATE�[39m
�[1m> Loading > buildSrc�[22m�[20D�[0K�[1A�[32C
�[1m> Loading > buildSrc�[22m�[1m > :buildSrc:compileGroovy�[22m�[1m > Resolving dependencies ':compi�[22m�[33D�[0K�[26D�[0K�[20D�[0K:buildSrc:compileGroovy
�[1m> Loading > buildSrc�[22m�[20D�[0K�[1A�[24C�[33mUP-TO-DATE�[39m
�[1m> Loading > buildSrc�[22m�[20D�[0K�[1A�[34C
�[1m> Loading > buildSrc�[22m�[1m > :buildSrc:processResources�[22m�[29D�[0K�[20D�[0K:buildSrc:processResources
�[1m> Loading > buildSrc�[22m�[20D�[0K�[1A�[27C�[33mUP-TO-DATE�[39m
�[1m> Loading > buildSrc�[22m�[20D�[0K�[1A�[37C
�[1m> Loading > buildSrc�[22m�[1m > :buildSrc:classes�[22m�[20D�[0K�[20D�[0K:buildSrc:classes
�[1m> Loading > buildSrc�[22m�[20D�[0K�[1A�[18C�[33mUP-TO-DATE�[39m
�[1m> Loading > buildSrc�[22m�[20D�[0K�[1A�[28C
�[1m> Loading > buildSrc�[22m�[1m > :buildSrc:jar�[22m�[16D�[0K�[20D�[0K:buildSrc:jar
�[1m> Loading > buildSrc�[22m�[20D�[0K�[1A�[14C�[33mUP-TO-DATE�[39m
�[1m> Loading > buildSrc�[22m�[20D�[0K�[1A�[24C
�[1m> Loading > buildSrc�[22m�[1m > :buildSrc:assemble�[22m�[21D�[0K�[20D�[0K:buildSrc:assemble
�[1m> Loading > buildSrc�[22m�[20D�[0K�[1A�[19C�[33mUP-TO-DATE�[39m
�[1m> Loading > buildSrc�[22m�[20D�[0K�[1A�[29C
�[1m> Loading > buildSrc�[22m�[1m > :buildSrc:compileTestJava�[22m�[28D�[0K�[20D�[0K:buildSrc:compileTestJava
�[1m> Loading > buildSrc�[22m�[20D�[0K�[1A�[26C�[33mUP-TO-DATE�[39m
�[1m> Loading > buildSrc�[22m�[20D�[0K�[1A�[36C
�[1m> Loading > buildSrc�[22m�[1m > :buildSrc:compileTestGroovy�[22m�[30D�[0K�[20D�[0K:buildSrc:compileTestGroovy
�[1m> Loading > buildSrc�[22m�[20D�[0K�[1A�[28C�[33mUP-TO-DATE�[39m
�[1m> Loading > buildSrc�[22m�[20D�[0K�[1A�[38C
�[1m> Loading > buildSrc�[22m�[1m > :buildSrc:processTestResources�[22m�[33D�[0K�[20D�[0K:buildSrc:processTestResources
�[1m> Loading > buildSrc�[22m�[20D�[0K�[1A�[31C�[33mUP-TO-DATE�[39m
�[1m> Loading > buildSrc�[22m�[20D�[0K�[1A�[41C
�[1m> Loading > buildSrc�[22m�[1m > :buildSrc:testClasses�[22m�[24D�[0K�[20D�[0K:buildSrc:testClasses
�[1m> Loading > buildSrc�[22m�[20D�[0K�[1A�[22C�[33mUP-TO-DATE�[39m
�[1m> Loading > buildSrc�[22m�[20D�[0K�[1A�[32C
�[1m> Loading > buildSrc�[22m�[1m > :buildSrc:test�[22m�[17D�[0K�[20D�[0K:buildSrc:test
�[1m> Loading > buildSrc�[22m�[20D�[0K�[1A�[15C�[33mUP-TO-DATE�[39m
�[1m> Loading > buildSrc�[22m�[20D�[0K�[1A�[25C
�[1m> Loading > buildSrc�[22m�[1m > :buildSrc:check�[22m�[18D�[0K�[20D�[0K:buildSrc:check
�[1m> Loading > buildSrc�[22m�[20D�[0K�[1A�[16C�[33mUP-TO-DATE�[39m
�[1m> Loading > buildSrc�[22m�[20D�[0K�[1A�[26C
�[1m> Loading > buildSrc�[22m�[1m > :buildSrc:build�[22m�[18D�[0K�[20D�[0K:buildSrc:build
�[1m> Loading > buildSrc�[22m�[20D�[0K�[1A�[16C�[33mUP-TO-DATE�[39m
�[1m> Loading > buildSrc�[22m�[20D�[0K�[1A�[26C
�[1m> Loading > buildSrc�[22m�[11D�[0K�[1m > settings�[22m�[11D�[0K�[7D�[1mConfiguring�[22m�[1m > 0/1 projects�[22m�[1m > root project�[22m�[1m > Resolving dependencies ':classpat�[22m�[36D�[0Kstarting: roslaunch val_deploy val_control_sim.launch controller_manager_looprate:=500 __name:=controller_manager_am_Macmini_10908_1874398186530051490 __log:=/home/am/.ros/log/6b65e308-b00f-11e6-af54-685b35a00088/controller_manager_am_Macmini_10908_1874398186530051490-4.log
�[1m > Resolving dependencies ':ros'�[22m... logging to /home/am/.ros/log/6b65e308-b00f-11e6-af54-685b35a00088/roslaunch-am-Macmini-11267.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
�]2;/opt/nasa/indigo/share/val_deploy/launch/val_control_sim.launch�
�[1mstarted roslaunch server http://am-Macmini:36884/�[0m

SUMMARY

PARAMETERS

  • /rosdistro: indigo
  • /rosversion: 1.11.20

NODES
/
controller_manager_am_Macmini_11267_3514388487941572722 (val_controller_manager_rtt/controller_exec)

�[1mROS_MASTER_URI=http://localhost:11311�[0m
�]2;/opt/nasa/indigo/share/val_deploy/launch/val_control_sim.launch http://localhost:11311�
core service [/rosout] found
�[1mprocess[controller_manager_am_Macmini_11267_3514388487941572722-1]: started with pid [11288]�[0m
�[32D�[0K�[15D�[0K�[12D�[1m1/1 projects�[22m�[15D�[0K�[13D�[0K�[1m> Building 0%�[22m�[1m > :parseYaml�[22m�[13D�[0K�[13D�[0K:parseYaml
�[1m> Building 0%�[22m�[13D�[0K�[1A�[11C�[33mUP-TO-DATE�[39m
�[1m> Building 0%�[22m�[13D�[0K�[1A�[21C
�[1m> Building 0%�[22m�[2D�[1m50%�[22m�[1m > :runJavaDelegate�[22m2016-11-21 22:55:01 localhost ncl_cpp: [NOTICE ] [gov.nasa.HardwareInterface.makeHandle] Robot Hardware has Initialized. Ready to start loading Controllers.

[INFO] [WallTime: 1479749101.652679] [4.037000] Controller Spawner: Waiting for service controller_manager/switch_controller
[INFO] [WallTime: 1479749101.654604] [4.039000] Controller Spawner: Waiting for service controller_manager/unload_controller
[INFO] [WallTime: 1479749101.656461] [4.041000] Loading controller: ihmc_valkyrie_control_java_bridge
�[0m[ INFO] [1479749101.704968226, 4.091000000]: Starting JVM with arguments: -Djava.class.path=ValkyrieController.jar -XX:+UseSerialGC -Xmx4g -Xms4g -XX:NewSize=3g -XX:MaxNewSize=3g -XX:CompileThreshold=1000 -verbosegc -Djava.library.path=lib/�[0m
Starting Java VM from path /home/am/valkyrie
�[33D�[0K:runJavaDelegate
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0KLoading robot model from: 'models/val_description/sdf/valkyrie_sim.sdf'
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K�[1A�[71C
�[1m> Building 50% > :runJavaDelegate�[22mStarted Java VM: success
starting: roslaunch val_gazebo spawn_urdf_model_from_robot_description.launch modelName:=valkyrie zOffset:=1.25 __name:=urdf_spawner_am_Macmini_10908_1798110691714769919 __log:=/home/am/.ros/log/6b65e308-b00f-11e6-af54-685b35a00088/urdf_spawner_am_Macmini_10908_1798110691714769919-7.log
�[31m[ERROR] [1479749102.135462500, 4.519000000]: Nov 21, 2016 10:55:01 PM us.ihmc.valkyrieRosControl.ValkyrieAffinity �[0m
�[31m[ERROR] [1479749102.135513883, 4.519000000]: SEVERE: WARNING: Hyper-Threading is enabled. Expect higher amounts of jitter�[0m
... logging to /home/am/.ros/log/6b65e308-b00f-11e6-af54-685b35a00088/roslaunch-am-Macmini-11410.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
�]2;/opt/nasa/indigo/share/val_gazebo/launch/spawn_urdf_model_from_robot_description.launch�
�[0m[ INFO] [1479749102.303692115, 4.675000000]: Loading robot model from: 'models/val_description/sdf/valkyrie_sim.sdf'�[0m
�[1mstarted roslaunch server http://am-Macmini:35999/�[0m

SUMMARY

PARAMETERS

  • /rosdistro: indigo
  • /rosversion: 1.11.20

NODES
/
urdf_spawner (gazebo_ros/spawn_model)

�[1mROS_MASTER_URI=http://localhost:11311�[0m
�]2;/opt/nasa/indigo/share/val_gazebo/launch/spawn_urdf_model_from_robot_description.launch http://localhost:11311�
core service [/rosout] found
�[1mprocess[urdf_spawner-1]: started with pid [11429]�[0m
�[33D�[0K[INFO] (NetworkParameters.java:38): Looking for network parameters in network parameters file at /opt/ros/indigo/share/ihmc_valkyrie_ros/configurations/IHMCNetworkParametersSim.ini
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K�[1A�[180C
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K[INFO] (NetworkParameters.java:42): Found Network parameters file at /opt/ros/indigo/share/ihmc_valkyrie_ros/configurations/IHMCNetworkParametersSim.ini
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K�[1A�[152C
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K[INFO] (NetworkParameters.java:69): Looking for network parameters in environment variables
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K�[1A�[91C
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K[INFO] (NetworkParameters.java:70): Environment variables will override entries in the network parameters file.
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K�[1A�[111C
�[1m> Building 50% > :runJavaDelegate�[22mspawn_model script started
[INFO] [WallTime: 1479749103.066184] [0.000000] Loading model xml from ros parameter
[INFO] [WallTime: 1479749103.094208] [5.463000] Waiting for service /gazebo/spawn_urdf_model
[INFO] [WallTime: 1479749103.097863] [5.470000] Calling service /gazebo/spawn_urdf_model
�[33D�[0KConnecting to controller using TCP on localhost
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K�[1A�[47C
�[1m> Building 50% > :runJavaDelegate�[22m�[1;33mWarning [parser.cc:778]�[0m XML Element[imuTransform], child of element[sensor] not defined in SDF. Ignoring[imuTransform]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
�[1;33mWarning [parser.cc:778]�[0m XML Element[node], child of element[sensor] not defined in SDF. Ignoring[node]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
�[1;33mWarning [parser.cc:778]�[0m XML Element[api], child of element[sensor] not defined in SDF. Ignoring[api]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
�[1;33mWarning [parser.cc:778]�[0m XML Element[port], child of element[sensor] not defined in SDF. Ignoring[port]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
�[1;33mWarning [parser.cc:778]�[0m XML Element[imuTransform], child of element[sensor] not defined in SDF. Ignoring[imuTransform]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
�[1;33mWarning [parser.cc:778]�[0m XML Element[node], child of element[sensor] not defined in SDF. Ignoring[node]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
�[1;33mWarning [parser.cc:778]�[0m XML Element[api], child of element[sensor] not defined in SDF. Ignoring[api]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
�[1;33mWarning [parser.cc:778]�[0m XML Element[port], child of element[sensor] not defined in SDF. Ignoring[port]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
�[1;33mWarning [parser.cc:778]�[0m XML Element[sensor_number], child of element[sensor] not defined in SDF. Ignoring[sensor_number]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
�[1;33mWarning [parser.cc:778]�[0m XML Element[node], child of element[sensor] not defined in SDF. Ignoring[node]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
�[1;33mWarning [parser.cc:778]�[0m XML Element[api], child of element[sensor] not defined in SDF. Ignoring[api]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
�[1;33mWarning [parser.cc:778]�[0m XML Element[sensor_number], child of element[sensor] not defined in SDF. Ignoring[sensor_number]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
�[1;33mWarning [parser.cc:778]�[0m XML Element[node], child of element[sensor] not defined in SDF. Ignoring[node]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
�[1;33mWarning [parser.cc:778]�[0m XML Element[api], child of element[sensor] not defined in SDF. Ignoring[api]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
�[1;33mWarning [parser.cc:778]�[0m XML Element[imuTransform], child of element[sensor] not defined in SDF. Ignoring[imuTransform]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
�[1;33mWarning [parser.cc:778]�[0m XML Element[node], child of element[sensor] not defined in SDF. Ignoring[node]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
�[1;33mWarning [parser.cc:778]�[0m XML Element[api], child of element[sensor] not defined in SDF. Ignoring[api]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
�[1;33mWarning [parser.cc:778]�[0m XML Element[port], child of element[sensor] not defined in SDF. Ignoring[port]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.
�[33D�[0K[WARN] YoVariable: desiredMomentumRateLinearX is getting created with a null registry
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K�[1A�[85C
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K[WARN] YoVariable: desiredMomentumRateLinearY is getting created with a null registry
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K�[1A�[85C
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K[WARN] YoVariable: desiredMomentumRateLinearZ is getting created with a null registry
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K�[1A�[85C
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K[WARN] YoVariable: achievedMomentumRateLinearX is getting created with a null registry
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K�[1A�[86C
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K[WARN] YoVariable: achievedMomentumRateLinearY is getting created with a null registry
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K�[1A�[86C
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K[WARN] YoVariable: achievedMomentumRateLinearZ is getting created with a null registry
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K�[1A�[86C
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K[WARN] YoVariable: residualRootJointForceX is getting created with a null registry
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K�[1A�[82C
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K[WARN] YoVariable: residualRootJointForceY is getting created with a null registry
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K�[1A�[82C
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K[WARN] YoVariable: residualRootJointForceZ is getting created with a null registry
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K�[1A�[82C
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K[WARN] YoVariable: residualRootJointTorqueX is getting created with a null registry
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K�[1A�[83C
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K[WARN] YoVariable: residualRootJointTorqueY is getting created with a null registry
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K�[1A�[83C
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K[WARN] YoVariable: residualRootJointTorqueZ is getting created with a null registry
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K�[1A�[83C
�[1m> Building 50% > :runJavaDelegate�[22m�[0m[ INFO] [1479749104.454163884, 5.569000000]: Camera Plugin (robotNamespace = /), Info: Using the 'robotNamespace' param: '/'�[0m
�[0m[ INFO] [1479749104.454444886, 5.569000000]: Camera Plugin (robotNamespace = /), Info: Using the 'robotNamespace' param: '/'�[0m
�[0m[ INFO] [1479749104.460090991, 5.569000000]: Camera Plugin (ns = /) <tf_prefix_>, set to ""�[0m
�[0m[ INFO] [1479749104.465452994, 5.569000000]: Camera Plugin (ns = /) <tf_prefix_>, set to ""�[0m
�[0m[ INFO] [1479749104.478498956, 5.569000000]: Laser Plugin (robotNamespace = /), Info: Using the 'robotNamespace' param: '/'�[0m
�[0m[ INFO] [1479749104.478659556, 5.569000000]: Starting GazeboRosLaser Plugin (ns = /)!�[0m
�[0m[ INFO] [1479749104.525147605, 5.569000000]: GPU Laser Plugin (ns = /) <tf_prefix_>, set to ""�[0m
�[0m[ INFO] [1479749104.532458453, 5.569000000]: LoadThread function completed�[0m
�[1;33�[0m[ INFO] [1479749104.646495418, 5.569000000]: [INFO] (NetworkParameters.java:38): Looking for network parameters in network parameters file at /home/am/.ihmc/IHMCNetworkParameters.ini�[0m
�[0m[ INFO] [1479749104.646817999, 5.569000000]: [INFO] (NetworkParameters.java:42): Found Network parameters file at /home/am/.ihmc/IHMCNetworkParameters.ini�[0m
�[0m[ INFO] [1479749104.647547883, 5.569000000]: [INFO] (NetworkParameters.java:69): Looking for network parameters in environment variables�[0m
�[0m[ INFO] [1479749104.647840085, 5.569000000]: [INFO] (NetworkParameters.java:70): Environment variables will override entries in the network parameters file.�[0m
m[Wrn] [msgs.cc:1793] �[0m�[1;33mConversion of sensor type[�[0m�[1;33mimu�[0m�[1;33m] not suppported.�[0m�[1;33m
�[0m�[1;33m�[0m�[1;33m[Wrn] [msgs.cc:1793] �[0m�[1;33mConversion of sensor type[�[0m�[1;33mimu�[0m�[1;33m] not suppported.�[0m�[1;33m
�[0m�[1;33m�[0m�[1;33m[Wrn] [msgs.cc:1793] �[0m�[1;33mConversion of sensor type[�[0m�[1;33mimu�[0m�[1;33m] not suppported.�[0m�[1;33m
�[0m�[1;33m�[0m�[1;33m[Wrn] [msgs.cc:1793] �[0m�[1;33mConversion of sensor type[�[0m�[1;33mimu�[0m�[1;33m] not suppported.�[0m�[1;33m
�[0m�[1;33m�[0m�[1;33m[Wrn] [msgs.cc:1793] �[0m�[1;33mConversion of sensor type[�[0m�[1;33mmulticamera�[0m�[1;33m] not suppported.�[0m�[1;33m
�[0m�[1;33m�[0m�[1;33m[Wrn] [msgs.cc:1793] �[0m�[1;33mConversion of sensor type[�[0m�[1;33mgpu_ray�[0m�[1;33m] not suppported.�[0m�[1;33m
�[0m�[1;33m�[0m�[1;33m[Wrn] [msgs.cc:1793] �[0m�[1;33mConversion of sensor type[�[0m�[1;33mforce_torque�[0m�[1;33m] not suppported.�[0m�[1;33m
�[0m�[1;33m�[0m�[1;33m[Wrn] [msgs.cc:1793] �[0m�[1;33mConversion of sensor type[�[0m�[1;33mforce_torque�[0m�[1;33m] not suppported.�[0m�[1;33m
�[0m�[1;33m�[0m[INFO] [WallTime: 1479749104.661252] [5.569000] Spawn status: SpawnModel: Successfully spawned model
Attaching native thread 11556 with priority 45 to JVM
�[1m[urdf_spawner-1] process has finished cleanly
log file: /home/am/.ros/log/6b65e308-b00f-11e6-af54-685b35a00088/urdf_spawner-1*.log�[0m
all processes on machine have died, roslaunch will exit
�[33D�[0Klog4j:WARN No appenders could be found for logger (org.ros.internal.node.client.Registrar).
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K�[1A�[91C
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0Klog4j:WARN Please initialize the log4j system properly.
�[1m> Building 50% > :runJavaDelegate�[22m�[1;33m[Wrn] [ColladaLoader.cc:1461] �[0m�[1;33mPolylist input semantic: '�[0m�[1;33mCOLOR�[0m�[1;33m' is currently�[0m�[1;33m not supported�[0m�[1;33m
�[0m�[1;33m�[0mshutting down processing monitor...
... shutting down processing monitor complete
�[1mdone�[0m
�[1;33m[Wrn] [msgs.cc:1793] �[0m�[1;33mConversion of sensor type[�[0m�[1;33mforce_torque�[0m�[1;33m] not suppported.�[0m�[1;33m
�[0m�[1;33m�[0m�[1;33m[Wrn] [msgs.cc:1793] �[0m�[1;33mConversion of sensor type[�[0m�[1;33mforce_torque�[0m�[1;33m] not suppported.�[0m�[1;33m
�[0m�[1;33m�[0m�[0m[ INFO] [1479749105.195264440, 5.569000000]: SharedMemoryInterfacePlugin: Loading�[0m
2016-11-21 22:55:05 localhost ncl_cpp: [ERROR ] [gov.nasa.SharedMemorySimInterfacePlugin.findUrdfSensors] Possibly missing an api or node tag from one or more imu sensors
2016-11-21 22:55:05 localhost ncl_cpp: [WARN ] [gov.nasa.SharedMemorySimInterfacePlugin.findUrdfSensors] Imu sensor head_imu_sensor doesn't have tag. It is likely that the data you receive from this sensor will be incorrect.
�[1m[urdf_spawner_am_Macmini_10908_1798110691714769919-7] process has finished cleanly
log file: /home/am/.ros/log/6b65e308-b00f-11e6-af54-685b35a00088/urdf_spawner_am_Macmini_10908_1798110691714769919-7*.log�[0m
�[0m[ INFO] [1479749105.276313036, 5.569000000]: SharedMemorySimInterfacePlugin: Loading complete!�[0m
�[0m[ INFO] [1479749105.290096303, 5.569000000]: Looking for forceSensorDefinition leftAnkleRoll�[0m
�[0m[ INFO] [1479749105.299745479, 5.569000000]: Looking for forceSensorDefinition rightAnkleRoll�[0m
�[0m[ INFO] [1479749105.753387095, 5.569000000]: imu plugin missing , defaults to �[0m
�[0m[ INFO] [1479749105.755447446, 5.569000000]: imu plugin missing , defaults to �[0m
�[0m[ INFO] [1479749105.755545821, 5.569000000]: imu plugin missing , defaults to �[0m
�[1;33m[Wrn] [msgs.cc:1793] �[0m�[1;33mConversion of sensor type[�[0m�[1;33mimu�[0m�[1;33m] not suppported.�[0m�[1;33m
�[0m�[1;33m�[0m�[1;33m[Wrn] [msgs.cc:1793] �[0m�[1;33mConversion of sensor type[�[0m�[1;33mimu�[0m�[1;33m] not suppported.�[0m�[1;33m
�[0m�[1;33m�[0m�[1;33m[Wrn] [msgs.cc:1793] �[0m�[1;33mConversion of sensor type[�[0m�[1;33mimu�[0m�[1;33m] not suppported.�[0m�[1;33m
�[0m�[1;33m�[0m�[1;33m[Wrn] [msgs.cc:1793] �[0m�[1;33mConversion of sensor type[�[0m�[1;33mimu�[0m�[1;33m] not suppported.�[0m�[1;33m
�[0m�[1;33m�[0m�[1;33m[Wrn] [msgs.cc:1793] �[0m�[1;33mConversion of sensor type[�[0m�[1;33mmulticamera�[0m�[1;33m] not suppported.�[0m�[1;33m
�[0m�[1;33m�[0m�[1;33m[Wrn] [msgs.cc:1793] �[0m�[1;33mConversion of sensor type[�[0m�[1;33mgpu_ray�[0m�[1;33m] not suppported.�[0m�[1;33m
�[0m�[1;33m�[0m�[1;33m[Wrn] [msgs.cc:1793] �[0m�[1;33mConversion of sensor type[�[0m�[1;33mforce_torque�[0m�[1;33m] not suppported.�[0m�[1;33m
�[0m�[1;33m�[0m�[1;33m[Wrn] [msgs.cc:1793] �[0m�[1;33mConversion of sensor type[�[0m�[1;33mforce_torque�[0m�[1;33m] not suppported.�[0m�[1;33m
�[0m�[1;33m�[0m�[33D�[0KIHMC ROS API node successfully started.
�[1m> Building 50% > :runJavaDelegate�[22m�[0m[ INFO] [1479749108.207315868, 6.057000000]: IMUBasedPelvisRotationalStateUpdater: More than 1 IMU sensor, using only the first one: pelvis_pelvisRearImu�[0m
�[0m[ INFO] [1479749108.257770228, 6.067000000]: PelvisIMUBasedLinearStateCalculator: More than 1 IMU sensor, using only the first one: pelvis_pelvisRearImu�[0m
Attaching native thread 12575 with priority 45 to JVM
�[33D�[0K[INFO] (KryoObjectClient.java:130): Success! Connected KryoClient to SCS at ip localhost/127.0.0.1 on port 4895
�[1m> Building 50% > :runJavaDelegate�[22m�[0m[ INFO] [1479749110.348349984, 6.491000000]: [INFO] (LogSessionBroadcaster.java:66): Announcing logging session on: name:lo (lo)�[0m
�[0m[ INFO] [1479749110.378289952, 6.497000000]: [INFO] (LogSessionBroadcaster.java:307): Trying port 56356�[0m
Attaching native thread 12593 with priority 40 to JVM
�[0m[ INFO] [1479749115.343440958, 7.641000000]: [INFO] (ValkyrieRosControlController.java:307): Running with blocking synchronous execution between estimator and controller�[0m
[INFO] [WallTime: 1479749115.625541] [7.712000] Controller Spawner: Loaded controllers: ihmc_valkyrie_control_java_bridge
[INFO] [WallTime: 1479749116.014584] [7.812000] Started controllers: ihmc_valkyrie_control_java_bridge
�[0m[ INFO] [1479749116.014888192, 7.812000000]: Setting estimator thread affinity to processor 1�[0m
lower harness
publishing and latching message for 3.0 seconds
switch to high level control after 20 seconds
publishing and latching message for 3.0 seconds
detach in 5 seconds
done
�[1m[startup_robot-11] process has finished cleanly
log file: /home/am/.ros/log/6b65e308-b00f-11e6-af54-685b35a00088/startup_robot-11*.log�[0m
publishing and latching message for 3.0 seconds
^C[controller_spawner_am_Macmini_10908_2491801057726095336-10] killing on exit
[IHMCValkyrieROSAPI-9] killing on exit
[robot_state_publisher-8] killing on exit
[gazebo_gui-6] killing on exit
[INFO] [WallTime: 1479749266.956910] [26.880000] Shutting down spawner. Stopping and unloading controllers...
[control_py_am_Macmini_10908_6429243349245551040-3] killing on exit
[gazebo-5] killing on exit
[controller_manager_am_Macmini_10908_1874398186530051490-4] killing on exit
[smtcore_am_Macmini_10908_3371504248313502897-2] killing on exit
�[0m�[33D�[0KCould not read error output of: command '/usr/lib/jvm/java-8-openjdk-amd64/bin/java'.
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K�[1A�[85C
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0Kjava.io.IOException: Stream closed
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K at java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:170)
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K at java.io.BufferedInputStream.read1(BufferedInputStream.java:291)
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K at java.io.FilterInputStream.read(FilterInputStream.java:107)
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K at org.gradle.process.internal.streams.ExecOutputHandleRunner.run(ExecOutputHandleRunner.java:51)
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
�[1m> Building 50% > :runJavaDelegate�[22m�[33D�[0K at java.lang.Thread.run(Thread.java:745)
�[1m> Building 50% > :runJavaDelegate�[22m[controller_manager_am_Macmini_11267_3514388487941572722-1] killing on exit
2016-11-21 22:57:47 localhost ncl_cpp: [FATAL ] [gov.nasa.ControllerExec.ORO_main] Controller manager has stopped running! Stopping controller exec.

A fatal error has been detected by the Java Runtime Environment:

SIGSEGV (0xb) at pc=0x00007fa8709bec4a, pid=11288, tid=140361427134400

JRE version: OpenJDK Runtime Environment (7.0_121) (build 1.7.0_121-b00)

Java VM: OpenJDK 64-Bit Server VM (24.121-b00 mixed mode linux-amd64 compressed oops)

Derivative: IcedTea 2.6.8

Distribution: Ubuntu 14.04 LTS, package 7u121-2.6.8-1ubuntu0.14.04.1

Problematic frame:

C [liborocos-rtt-gnulinux.so.2.8+0x159c4a] RTT::ComponentLoader::unloadComponent(RTT::TaskContext*)+0x6a

Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again

An error report file with more information is saved as:

/home/am/.ros/hs_err_pid11288.log

pure virtual method called
terminate called without an active exception
shutting down processing monitor...
... shutting down processing monitor complete
�[1mdone�[0m
�[31m[controller_spawner_am_Macmini_10908_2491801057726095336-10] escalating to SIGTERM�[0m
�[31m[IHMCValkyrieROSAPI-9] escalating to SIGTERM�[0m
�[31m[gazebo-5] escalating to SIGTERM�[0m
�[31m[controller_spawner_am_Macmini_10908_2491801057726095336-10] escalating to SIGKILL�[0m
�[31m[IHMCValkyrieROSAPI-9] escalating to SIGKILL�[0m
[rosout-1] killing on exit
[master] killing on exit
�[31mShutdown errors:

  • process[controller_spawner_am_Macmini_10908_2491801057726095336-10, pid 10976]: required SIGKILL. May still be running.
  • process[IHMCValkyrieROSAPI-9, pid 10972]: required SIGKILL. May still be running.�[0m
    shutting down processing monitor...
    ... shutting down processing monitor complete
    �[1mdone�[0m

Script done on Monday 21 November 2016 10:58:04 PM IST

@osrf-migration
Copy link
Author

Original comment by Jordan Lack (Bitbucket: jordanlack).


@Amita94 it looks like this is a separate issue than what this ticket was initially opened up to address. It's a bit difficult to parse through that output, but it sounds like you're having a problem with Valkyrie actually falling down in Gazebo, where this issue was created due to a crashing issue.

I am currently working on a release that includes a number of features including a fix for the crashing issue reported by a few users here(see top of this thread).

@osrf-migration
Copy link
Author

Original comment by Franky Lau (Bitbucket: frankylau).


hi @JordanLack, sorry that I am not going to hurry you up, but just want to make it clear.

is the new release will address the 2 physical cores problem as @dljsjr described?

thanks.

@osrf-migration
Copy link
Author

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


Ok, everyone, IHMC has released a new version of their controller (version 0.8.1), and I've uploaded a new valkyrie_controller.tar.gz (step 10 in installation instructions), so please delete the ~/valkyrie folder and download the new one and extract it in its place. This should fix the issues with dual-core CPU's.

Can some folks test this out to see if it helps?

@osrf-migration
Copy link
Author

Original comment by Nuttaworn Sujumnong (Bitbucket: nsujumnong).


Excellent. The controller works on my computer now. Also, I don't get hyperthreading error message any longer, which is kinda cool. Thank you!

@osrf-migration
Copy link
Author

Original comment by dan (Bitbucket: dan77062).


It no longer has the IndexOutOfBoundsException, so the patch has solved the 2 core problem-- thanks! Unfortunately, the robot still collapses. Since I think that is due to other reasons, I put a comment along with output into issue #9
I think this issue (2 cores) is resolved.

@osrf-migration
Copy link
Author

Original comment by Adam Allevato (Bitbucket: Kukanani).


The new controller definitely seems to have improved software stability. Good work.

@osrf-migration
Copy link
Author

Original comment by dan (Bitbucket: dan77062).


  • changed state from "new" to "resolved"

The two core problem is solved-- thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working major
Projects
None yet
Development

No branches or pull requests

1 participant