2

I am using this open source software for working with Sick Lidar Devices:

https://github.com/rhuitl/sicktoolbox/tree/master/trunk/c%2B%2B/drivers/lms5xx/sicklms5xx

and this documentation which provides information on the data:

https://www.sick.com/media/docs/7/27/927/Technical_information_Telegram_Listing_Ranging_sensors_LMS1xx_LMS5xx_TiM5xx_NAV310_LD_OEM15xx_LD_LRS36xx_en_IM0045927.PDF

I am trying to use the C++ implementation to parse already written files in the "CoLa B" format from SickLMS5xx, mentioned in said documentation. However, this toolbox appears to have been written to deal with the device directly, and not files that are outputted from it (like what I am working with).

It appears I can use the functions in the SickLMS5xxMessage (ParseMessage() etc.) to achieve what I want. I made a main method to interract with this class (and it's SickMessage() superclass) like so:

#include <iostream>
#include <fstream>

#include <boost/thread/thread.hpp>

#include "SickLMS5xxMessage.cc"

void run() {
  SickLMS5xxMessage msg(uint8_t * const telegramFileBuffer[]);

  std::ifstream telegramFile("MMS21_01");
  if(telegramFile.is_open()) {
    uint8_t telegramFileBuffer[msg.GetMessageLength()];
    for(int i = 0; i < msg.GetMessageLength(); ++i) {
      telegramFile >> telegramFileBuffer[i];
    }
  }
  msg.Print();
}

int main (int argc, char** argv) {
  run();

  return (0);
}

But it doesn't appear to work properly, as it cannot recognise the GetMessageLength() and Print() functions from SickLMS5xxMessage, and gives me an unresolved method error?

Maybe it's an error with my C++ coding (because I come from a Java background and so C++ is still relatively new to me).

Any help will be appreciated though, thank you :)

KeyboardNinja
  • 71
  • 1
  • 2
  • 11
  • Wow, thank you for than handy link to a new reference doc. I've already had 3 or 4 different ones (all incomplete with mistakes), and this looks much more extensive :) Unfortunately I don't use this library, but my own (it's been a while) so I'm not sure I can be of much help. Although, how were the files you mention generated? Using SOPAS? – Dan Mašek Jun 13 '17 at 17:12

0 Answers0