I am quite confused on how to set the type_mask for the setpoint_raw/local topic, which uses the mavros_msgs/PositionTarget message. If I want to control vx and yaw rate in the body frame (frame_id = 8), it seems like I need to mask out all the other variable like px,py,pz,ax,ay,az, etc…
Then what should I put for the type mask in:
raw_cmd = PositionTarget()
raw_cmd.type_mask = ???
raw_cmd.header.frame_id = "base_footprint"
raw_cmd.header.stamp = rospy.Time.now()
raw_cmd.coordinate_frame = 8