Failed to add Position Sensor to channel!
"H.S. Randhawa" <[email protected]> Mon, 20 Mar 2006 15:40:33 +0530
| Newsgroups | gmane.science.robotics.orocos.user |
|---|---|
| Message-ID | <[email protected]> |
I download the sample program axis control and run it. While observing
output, i found that the kernel is unable to add position sensor to channel.
I am mailing here some part of that sample program and the output of that
sample program.
Program portion:
// Add the axis to the Sensor:
if (!axis_sens.addAxis("Axis1", ax1) )
cerr <<"Failed to add Axis1 to sensor!"<<endl;
// Add the axis to the Effector:
if (!axis_eff.addAxis("Axis1", ax1) )
cerr <<"Failed to add Axis1 to sensor!"<<endl;
// Sensor: Also show the Position sensors in the ChannelValues :
if (!axis_sens.addSensorOnChannel("Axis1", "Position", 0) )
cerr <<"Failed to add Position Sensor to channel!"<<endl;
// Effector: Read the drive value from channel zero :
if (!axis_eff.addAxisOnChannel("Axis1", 0) )
cerr <<"Failed to read Axis drive value from Channel !"<<endl;
Output:
[root@manipulator axis_control]# ./axiskernel
0.161 [Info] ./axiskernel manually raises LogLevel to 'Info' (5). See also
file 'orocos.log'.
0.162 [Info] Trying to load Component DefaultController : success !
0.165 [Info] Trying to load Component DefaultGenerator : success !
0.165 [Info] Trying to load Component DefaultEstimator : success !
0.168 [Info] Trying to load Component DefaultEffector : success !
0.169 [Info] Trying to load Component DefaultSensor : success !
0.184 [Info] KernelConfig: axis_config.xml : No KernelComponents listed.
0.185 [Info] KernelConfig: Parsing axis_property.cpf.
0.189 [Info] PropertyExtension Properties :
0.190 [Info] SaveProperties : 0
0.190 [Info] SaveFilePrefix : saved_
0.190 [Info] SaveFileExtension : cpf
0.190 [Info] IgnoreMissingFiles : 0
0.190 [Info] ConfigureOnLoad : 1
0.191 [Info] KernelBaseFunction Properties :
0.194 [Info] frequency : 20
0.194 [Info] Effector : DefaultEffector
0.195 [Info] Estimator : DefaultEstimator
0.195 [Info] Generator : DefaultGenerator
0.195 [Info] Controller : DefaultController
0.195 [Info] Sensor : DefaultSensor
0.196 [Info] KernelConfig: Parsing axis_execution.cpf.
0.201 [Info] ExecutionExtension Properties :
0.203 [Info] Interval : 1
0.204 [Info] KernelConfig: Parsing axis_reporter.cpf.
0.210 [Info] ReportingExtension Properties :
0.210 [Info] ReportPeriod : 0.5
0.210 [Info] SubSamplingInterval : 1
0.211 [Info] ReportFile : results.txt
0.211 [Info] ReportServer : MyAxisKernel
0.211 [Info] WriteToStdOut : 0
0.211 [Info] WriteHeader : 1
0.211 [Info] WriteToFile : 1
0.220 [Info] AutoStart : 1
0.221 [Info] Trying to load Component GenericSensor : success !
0.229 [Info] Trying to load Component AxisSensor : success !
0.230 [Info] Trying to load Component AxisEffector : success !
0.239 [Info] Configuring AxisPositionGenerator::Property
0.252 [Info] Trying to load Component AxisPositionGenerator : success !
0.253 [Info] Configuring PID_Controller::Property
0.266 [Info] Trying to load Component PID_Controller : success !
0.267 [Info] Configuring P_Controller::Property
0.281 [Info] Trying to load Component P_Controller : success !
Input DataObjects are :
| ChannelValues <std::vector<double>> |
| Size | 0 |
Output DataObjects are :
| ChannelValues <std::vector<double>> |
| Size |
0.302 [Info] Trying to load Component cout : success !
Velocity: Max:100 Min:-100
Axis1 Position : 0
Axis1 Low limit : 0 High limit : 0
Failed to add Position Sensor to channel!
0.321 [Info] Kernel MyAxisKernel started.
0.322 [Info] ExecutionExtension : Processor could not activate "Default"
StateMachine.
0.338 [Info] ReportingExtension : Reporting to file results.txt.
--
H.S.Randhawa
_______________________________________________
Orocos mailing list
[email protected]
http://lists.mech.kuleuven.be/mailman/listinfo/orocos