Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@

<author email="[email protected]">Eric Wieser</author>

<exec_depend condition="$ROS_PYTHON_VERSION == 2">python-numpy</exec_depend>
<exec_depend condition="$ROS_PYTHON_VERSION == 3">python3-numpy</exec_depend>
<exec_depend>python3-numpy</exec_depend>
<exec_depend>rospy</exec_depend>
<exec_depend>sensor_msgs</exec_depend>
<exec_depend>nav_msgs</exec_depend>
Expand Down
2 changes: 1 addition & 1 deletion src/ros_numpy/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def numpify(msg, *args, **kwargs):
return

conv = _to_numpy.get((msg.__class__, False))
if not conv and isinstance(msg, collections.Sequence):
if not conv and isinstance(msg, collections.abc.Sequence):
if not msg:
raise ValueError("Cannot determine the type of an empty Collection")
conv = _to_numpy.get((msg[0].__class__, True))
Expand Down