rclnodejs icon indicating copy to clipboard operation
rclnodejs copied to clipboard

[rosidl_gen]Add push method for the property of array type

Open minggangw opened this issue 7 years ago • 1 comments

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);

minggangw avatar Jun 06 '18 02:06 minggangw

Some types of the array in rclnodjs are backed by TypedArray which don't have a push method, we have to consider this situation.

minggangw avatar Jun 08 '18 09:06 minggangw