Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LidarView-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LidarView
LidarView-Core
Commits
3c91490b
Commit
3c91490b
authored
10 years ago
by
Casey Goodlett
Browse files
Options
Downloads
Patches
Plain Diff
Add a feature to send data to another ip
parent
38f035e2
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
VelodyneHDL/PacketFileSender.cxx
+6
-2
6 additions, 2 deletions
VelodyneHDL/PacketFileSender.cxx
VelodyneHDL/vtkVelodyneHDLReader.cxx
+1
-0
1 addition, 0 deletions
VelodyneHDL/vtkVelodyneHDLReader.cxx
with
7 additions
and
2 deletions
VelodyneHDL/PacketFileSender.cxx
+
6
−
2
View file @
3c91490b
...
...
@@ -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
{
...
...
This diff is collapsed.
Click to expand it.
VelodyneHDL/vtkVelodyneHDLReader.cxx
+
1
−
0
View file @
3c91490b
...
...
@@ -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
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment