get variable from topic with python
I created a node and subscribe a topic (nav_msgs/Odometry Message) i want operate with the quaternion, how i can get it value? With python
i try it this way:
rospy.Subscriber('/odometry/filtered', Odometry)
x = Odometry.pose.pose.pose.orientation.x
but not work well