Changeset 42 in pacpussensors for trunk/Sick/SickComponent.cpp
- Timestamp:
- Apr 1, 2014, 2:47:39 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Sick/SickComponent.cpp
r37 r42 37 37 38 38 39 //////////////////////////////////////////////////////////////////////////40 /// Constructor.41 39 SickComponent::SickComponent(QString name) 42 40 : ComponentBase(name) … … 47 45 } 48 46 49 //////////////////////////////////////////////////////////////////////////50 /// Destructor.51 47 SickComponent::~SickComponent() 52 48 { … … 54 50 } 55 51 56 ////////////////////////////////////////////////////////////////////////// 57 /// Called by the ComponentManager to start the component 52 58 53 void SickComponent::startActivity() 59 54 { … … 63 58 } 64 59 65 ////////////////////////////////////////////////////////////////////////// 66 /// Called by the ComponentManager to stop the component 60 67 61 void SickComponent::stopActivity() 68 62 { … … 72 66 } 73 67 74 ////////////////////////////////////////////////////////////////////////// 75 /// Called by the ComponentManager to pass the XML parameters to the 76 /// component 68 77 69 ComponentBase::COMPONENT_CONFIGURATION SickComponent::configureComponent(XmlComponentConfig config) 78 70 { 79 71 /* 80 * <Sick Component sickldmrs_1="192.168.0.1:1202">72 * <Sick sickldmrs_0="192.168.0.1:2111" sicklms151_0="192.168.0.10:2111" sicklms511_0="192.168.1.50:2111"> 81 73 */ 82 // /Sick LD-MRS74 // Sick LD-MRS 83 75 int num = 0; 84 76 while (param.getProperty("sickldmrs_"+QString::number(num)) != QString::null){ … … 95 87 } 96 88 97 // /Sick LMS 15189 // Sick LMS 151 98 90 num = 0; 99 91 while (param.getProperty("sicklms151_"+QString::number(num)) != QString::null){ … … 110 102 } 111 103 104 // Sick LMS 511 112 105 num = 0; 113 106 while (param.getProperty("sicklms511_"+QString::number(num)) != QString::null){
Note:
See TracChangeset
for help on using the changeset viewer.