diff --git a/com.unity.robotics.ros-tcp-connector/CHANGELOG.md b/com.unity.robotics.ros-tcp-connector/CHANGELOG.md index f883a80f..c0d9499a 100644 --- a/com.unity.robotics.ros-tcp-connector/CHANGELOG.md +++ b/com.unity.robotics.ros-tcp-connector/CHANGELOG.md @@ -21,6 +21,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a ### Fixed +Fixing bug in ROS2 where the getter TimeMsg nsecs caused a StackOverflowException + ## [0.7.0-preview] - 2022-02-01 diff --git a/com.unity.robotics.ros-tcp-connector/Runtime/Messages/HandwrittenMessages/msg/TimeMsg.cs b/com.unity.robotics.ros-tcp-connector/Runtime/Messages/HandwrittenMessages/msg/TimeMsg.cs index 0046259e..380055b1 100644 --- a/com.unity.robotics.ros-tcp-connector/Runtime/Messages/HandwrittenMessages/msg/TimeMsg.cs +++ b/com.unity.robotics.ros-tcp-connector/Runtime/Messages/HandwrittenMessages/msg/TimeMsg.cs @@ -64,7 +64,7 @@ public override string ToString() // for convenience when writing ROS2 agnostic code public uint secs { get => (uint)sec; set => sec = (int)value; } - public uint nsecs { get => nsecs; set => nsecs = value; } + public uint nsecs { get => nanosec; set => nanosec = value; } public TimeMsg() {