Tạo node I3S_receiver

Sử dụng code từ beginner _tutorial, thay đổi receiver

#include <ros/ros.h>

#include <sensor_msgs/Joy.h>

#include <geometry_msgs/Twist.h>

#include <geometry_msgs/TwistStamped.h>

#include <std_msgs/Float64.h>

class JoyROV

{

public:

  JoyROV\(\);

  void joyCallback\(const sensor\_msgs::Joy::ConstPtr &joy\);



private:

  ros::NodeHandle nh;        



  ros::Subscriber joySub;



  ros::Publisher angVelPub;

  ros::Publisher throttlePub;

};

JoyROV::JoyROV(){

// void ros::param::set("/mavros/setpoint_attitude/reverse_throttle", true);

/*

}

void JoyROV::joyCallback(const sensor_msgs::Joy::ConstPtr &joy){

}

int main(int argc, char** argv){

}

Last updated

Was this helpful?