Changeset 42 in pacpussensors for trunk/Sick/SickComponent.cpp


Ignore:
Timestamp:
Apr 1, 2014, 2:47:39 PM (11 years ago)
Author:
cfougera
Message:

Last version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Sick/SickComponent.cpp

    r37 r42  
    3737
    3838
    39 //////////////////////////////////////////////////////////////////////////
    40 /// Constructor.
    4139SickComponent::SickComponent(QString name)
    4240    : ComponentBase(name)
     
    4745}
    4846
    49 //////////////////////////////////////////////////////////////////////////
    50 /// Destructor.
    5147SickComponent::~SickComponent()
    5248{
     
    5450}
    5551
    56 //////////////////////////////////////////////////////////////////////////
    57 /// Called by the ComponentManager to start the component
     52
    5853void SickComponent::startActivity()
    5954{
     
    6358}
    6459
    65 //////////////////////////////////////////////////////////////////////////
    66 /// Called by the ComponentManager to stop the component
     60
    6761void SickComponent::stopActivity()
    6862{
     
    7266}
    7367
    74 //////////////////////////////////////////////////////////////////////////
    75 /// Called by the ComponentManager to pass the XML parameters to the
    76 /// component
     68
    7769ComponentBase::COMPONENT_CONFIGURATION SickComponent::configureComponent(XmlComponentConfig config)
    7870{
    7971    /*
    80      * <SickComponent 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">
    8173     */
    82     /// Sick LD-MRS
     74    // Sick LD-MRS
    8375    int num = 0;
    8476    while (param.getProperty("sickldmrs_"+QString::number(num)) != QString::null){
     
    9587    }
    9688
    97     /// Sick LMS 151
     89    // Sick LMS 151
    9890       num = 0;
    9991     while (param.getProperty("sicklms151_"+QString::number(num)) != QString::null){
     
    110102    }
    111103
     104     // Sick LMS 511
    112105     num = 0;
    113106   while (param.getProperty("sicklms511_"+QString::number(num)) != QString::null){
Note: See TracChangeset for help on using the changeset viewer.