Skip to content
Snippets Groups Projects
Commit c796c635 authored by Simon Ottenhaus's avatar Simon Ottenhaus
Browse files

bug fix

parent 5abd85c4
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@
using namespace armarx;
WeissHapticSensor::WeissHapticSensor(std::string device)
: device(device), connected(false)
: device(device), connected(false), setDeviceTagScheduled(false)
{
sensorTask = new RunningTask<WeissHapticSensor>(this, &WeissHapticSensor::frameAcquisitionTaskLoop);
boost::smatch match;
......@@ -40,11 +40,14 @@ void WeissHapticSensor::connect()
if(sensor->tryGetDeviceTag(tag))
{
this->tag = tag;
ARMARX_INFO << "[" << device << "] Got tag from device: '" << tag << "'";
}
else
{
ARMARX_WARNING << "[" << device << "] No device tag present using device name instead";
this->tag = deviceFileName;
}
//cout << boost::format("Sensor Tag = %1%") % tag << endl;
jsWriter->writeLine(str(boost::format("%s = {};") % deviceFileName));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment