Mavros Multicopter turnover?


Hİ, I am using gazebo with gazebo_typhoon_h480 model. I can send arm,takeoff,land commands. I want to make offboard control. I searched I have to use /mavros/setpoint_attitude/cmd_vel.

I published following message, But drone doesn’t turn over.

ros::Publisher local_att_pub = nh.advertise<geometry_msgs::TwistStamped>
        ("/mavros/setpoint_attitude/cmd_vel", 10);

twmsg.header.stamp = ros::Time::now();
twmsg.twist.angular.z = 1;

Can you help me? What is wrong?


@saucompeng There is a time out on the rate of setpoints you need to publish. Please refer to this document