Changeset 907 for cpp/frams/neuro/impl/neuroimpl-body-sdk.h
- Timestamp:
- 02/04/20 19:18:52 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/neuro/impl/neuroimpl-body-sdk.h
r791 r907 11 11 { 12 12 public: 13 NeuroImpl* makeNew() { return new NI_Gyro(); } // for NeuroFactory13 NeuroImpl* makeNew() { return new NI_Gyro(); } // for NeuroFactory 14 14 int lateinit() { if (!neuro->joint) return 0; simorder = 0; return 1; } 15 15 void go() { setState(0); } … … 21 21 public: 22 22 double range; 23 NeuroImpl* makeNew() { return new NI_Touch(); } // for NeuroFactory23 NeuroImpl* makeNew() { return new NI_Touch(); } // for NeuroFactory 24 24 int lateinit() { if (!neuro->part) return 0; simorder = 0; return 1; } 25 25 void go() { setState(0); } … … 30 30 { 31 31 public: 32 NeuroImpl* makeNew() { return new NI_Smell(); } // for NeuroFactory32 NeuroImpl* makeNew() { return new NI_Smell(); } // for NeuroFactory 33 33 void go() { setState(0); } 34 34 int lateinit() { if (!neuro->part) return 0; simorder = 0; return 1; } … … 40 40 public: 41 41 double power, bendrange; 42 NeuroImpl* makeNew() { return new NI_BendMuscle(); } // for NeuroFactory42 NeuroImpl* makeNew() { return new NI_BendMuscle(); } // for NeuroFactory 43 43 NI_BendMuscle() { paramentries = NI_BendMuscle_tab; } 44 44 int lateinit() { if (!neuro->joint) return 0; simorder = 2; return 1; } … … 51 51 public: 52 52 double power; 53 NeuroImpl* makeNew() { return new NI_RotMuscle(); } // for NeuroFactory53 NeuroImpl* makeNew() { return new NI_RotMuscle(); } // for NeuroFactory 54 54 NI_RotMuscle() { paramentries = NI_RotMuscle_tab; } 55 55 int lateinit() { if (!neuro->joint) return 0; simorder = 2; return 1; } … … 62 62 public: 63 63 double power; 64 NeuroImpl* makeNew() { return new NI_RotMuscle(); } // for NeuroFactory64 NeuroImpl* makeNew() { return new NI_RotMuscle(); } // for NeuroFactory 65 65 NI_LinearMuscle() { paramentries = NI_RotMuscle_tab; } 66 66 int lateinit() { if (!neuro->joint) return 0; simorder = 2; return 1; } … … 72 72 public: 73 73 double power; 74 NeuroImpl* makeNew() { return new NI_Sticky(); } // for NeuroFactory74 NeuroImpl* makeNew() { return new NI_Sticky(); } // for NeuroFactory 75 75 int lateinit() { if (!neuro->part) return 0; simorder = 0; return 1; } 76 76 void go() {} … … 80 80 { 81 81 public: 82 NeuroImpl* makeNew() { return new NI_WaterDetect(); } // for NeuroFactory82 NeuroImpl* makeNew() { return new NI_WaterDetect(); } // for NeuroFactory 83 83 int lateinit() { if (!neuro->part) return 0; simorder = 0; return 1; } 84 84 void go() { setState(0); } … … 88 88 { 89 89 public: 90 NeuroImpl* makeNew() { return new NI_Energy(); } // for NeuroFactory90 NeuroImpl* makeNew() { return new NI_Energy(); } // for NeuroFactory 91 91 void go() { setState(0); } 92 92 };
Note: See TracChangeset
for help on using the changeset viewer.