Skip to content

Commit

Permalink
Update VelodyneMsgSerializer.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Autumn60 committed Dec 3, 2023
1 parent 339b873 commit 7708634
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 7708634

Please sign in to comment.