Skip to content
Snippets Groups Projects
Commit 3c91490b authored by Casey Goodlett's avatar Casey Goodlett
Browse files

Add a feature to send data to another ip

parent 38f035e2
No related branches found
No related tags found
No related merge requests found
......@@ -42,20 +42,24 @@ int main(int argc, char* argv[])
{
if (argc < 2) {
std::cout << "Usage: " << argv[0] << " <packet file> [loop]" << std::endl;
std::cout << "Usage: " << argv[0] << " <packet file> [loop] [ip]" << std::endl;
return 1;
}
std::string filename(argv[1]);
int loop = 0;
std::string destinationIp = "127.0.0.1";
if(argc > 2)
{
loop = atoi(argv[2]);
}
if(argc > 3)
{
destinationIp = argv[3];
}
try
{
std::string destinationIp = "127.0.0.1";
int dataPort = 2368;
do
{
......
......@@ -720,6 +720,7 @@ void vtkVelodyneHDLReader::DumpFrames(int startFrame, int endFrame, const std::s
dataLength == (512 + 42))
{
writer.WritePacket(header, const_cast<unsigned char*>(data));
}
// dont check for frame counts if it was a GPS packet
if(dataLength != (1206 + 42))
......
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