[ros-users] rospy.Time not meant to be pickle-able in Python…

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: Hai Nguyen
日付:  
To: ros-users
題目: [ros-users] rospy.Time not meant to be pickle-able in Python?
Hi,

I'm writing a simple script that receives messages from a bag file and
tries to pickle them. It looks like the pickle module doesn't like
the roslib.time.Time class that's in header.stamp on some of the
messages and exits with the error:
"TypeError: a class that defines __slots__ without defining
__getstate__ cannot be pickled"

I feel like I must have pickled a message with a header.stamp field in
the past. Is this a recent change or am I mistaken?

--
Hai Nguyen
CS, Robotics