Skip to content

/mavros/setpoint_attitude/pt_attitude in MAVROS and Pixhawk Firmware? #3

@weiweikong

Description

@weiweikong

Hi,
after checking http://wiki.ros.org/mavros and https://github.com/mavlink/mavros/blob/master/mavros/README.md, I did not find any hint about the topic of pt_attitude.
According to the

void Controller::sendAttitudeCommand()
{
    /*
     * Don't send setpoint unless offboard enabled.
     */
    if (!off_board_enabled_)
    {
        return;
    }
    mavros_msgs::PoseThrottle pt;
    pt.pose = vehicle_command_ENU_.getPose();
    pt.throttle.data = vehicle_command_ENU_.attitude.throttle;
    pt_attitude_setpoint_pub_.publish(pt);

    last_update_time_ = ros::Time::now();

    return;
}

the data structure published to pt_attitude might not be standard msgs. Also, I checked https://github.com/mavlink/mavros/tree/0.14.2/mavros_msgs/msg, which might be the 0.14.2 version which mentioned in the introudction part. But I could not find any definition about that? In addition, this topic should be received from PX4, so the Firmware also need modify to match this new control command ?

Would it be possible to share more information about this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions