Open SamLin55587 opened 2 years ago
@SamLin55587 Can you run multivehicle HITL without mavros?
@Jaeyoung-Lim Yes I can. Actually, I can run three vehiles in HITL
@SamLin55587 Okay, and the offboard interface you are using is not the same as the interface that the HITL messages are being passed?
@Jaeyoung-Lim My computer is repaired now ,so I will reply you after it get repaired. Thanks for your responds.
@Jaeyoung-Lim
Actually I don't really understand what you mean, I try to modify all ("uav0-1/mavros/state", 10, state_cb) and other row of //uav0-1 to ("/mavros/state", 10, state_cb) . But just one can run , I would like to make them worked. If you know how to do please tell me ,thanks a lot.
How to implement OFFBOARD in HITL please? how to connect offboard API to HITL?
Hello @SamLin55587, sorry for bothering you. Have you solved it? Did you run HITL in ROS 1 right ? If u not use mavros package, how to connect between simulator with companion PC? Thank you.
I try to conduct Multi vehicle offboard mode In HITL But only one vehicle can run . According to my offboard_node.cpp can run two vehicle, But only one vehicle execute in Gazebo I don't know how to fix it I hope somebody can help me
This is my code:
/**
include <ros/ros.h>
include <geometry_msgs/PoseStamped.h>
include <mavros_msgs/CommandBool.h>
include <mavros_msgs/SetMode.h>
include <mavros_msgs/State.h>
mavros_msgs::State current_state; void state_cb(const mavros_msgs::State::ConstPtr& msg){ current_state = *msg; }
int main(int argc, char **argv) { ros::init(argc, argv, "offb_node");
}