rclnodejs
rclnodejs copied to clipboard
[rosidl_gen]Add push method for the property of array type
Some IDLs have properties as Array, e.g. actionlib_msgs/GoalStatusArray
# Stores the statuses for goals that are currently being tracked
# by an action server
std_msgs/Header header
GoalStatus[] status_list
We want to implement a push method which can append an element into the current array, e.g.
let message = new GoalStatusArray();
message.status_list.push(status);
Some types of the array in rclnodjs are backed by TypedArray which don't have a push method, we have to consider this situation.