Skip to content

Commit

Permalink
fix issue with time/duration message fields (without std_msgs prefix)…
Browse files Browse the repository at this point in the history
… when used as array (ros/ros_comm#252)
  • Loading branch information
dirk-thomas committed Jul 15, 2013
1 parent fe769d9 commit e8e0f3e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/genpy/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,10 @@ def _get_message_or_service_class(type_str, message_type, reload_on_error=False)
:returns: Message/Service for message/service type or None, ``class``
:raises: :exc:`ValueError` If message_type is invalidly specified
"""
if message_type == 'time':
return Time
if message_type == 'duration':
return Duration
## parse package and local type name for import
package, base_type = genmsg.package_resource_name(message_type)
if not package:
Expand Down

0 comments on commit e8e0f3e

Please sign in to comment.