Skip to content

Commit

Permalink
Update VelodyneMsgSerializer.cs (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
Autumn60 authored Dec 4, 2023
1 parent bd9b3f9 commit 170369a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ public VelodyneScanMsg Serialize(float time)

_msg.header = _header.header;

uint sec = _header.header.stamp.sec;
#if ROS2
int sec = (int)_header.header.stamp.sec;
#else
uint sec = (uint)_header.header.stamp.sec;
# endif
uint nanosec = _header.header.stamp.nanosec;

for (int i = 0; i < _msg.packets.Length; i++)
Expand Down

0 comments on commit 170369a

Please sign in to comment.