diff Renderer/Test/gaplant.cc @ 562:a5fda4e51498

name search
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Thu, 22 Oct 2009 22:22:31 +0900
parents 1a2f015c42b2
children 306c9a7717c3
line wrap: on
line diff
--- a/Renderer/Test/gaplant.cc	Thu Oct 22 19:31:09 2009 +0900
+++ b/Renderer/Test/gaplant.cc	Thu Oct 22 22:22:31 2009 +0900
@@ -1,5 +1,4 @@
 #include "SceneGraphRoot.h"
-#include "xml_file/gap_plane_test.xml.h"
 #include "gaplant_action.h"
 #include "gaplant.h"
 #include "back_action.h"
@@ -20,8 +19,9 @@
     gaplant->angle[1] = 0;
     gaplant->angle[2] = 0;
     gaplant->set_move_collision(gaplant_move, gaplant_coll);
- 
-    for (int i = arm_L_D; i <= foot_L_A; i++) {
+
+    int foot =  sgroot->getSgid("foot_L_A");
+    for (int i = sgroot->getSgid("arm_L_D"); i <= foot; i++) {
 	SceneGraphPtr p = sgroot->createSceneGraph(i);
 	gaplant->addChild(p);
     }