Merged dev into solo-playground
This commit is contained in:
commit
a5c1cf7754
|
@ -111,6 +111,7 @@ private:
|
|||
ros::Subscriber Robot_id_sub;
|
||||
ros::Subscriber relative_altitude_sub;
|
||||
|
||||
std::string local_pos_sub_name;
|
||||
ros::Subscriber local_pos_sub;
|
||||
double local_pos_new[3];
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ topics:
|
|||
setpoint: mavros/setpoint_position/local
|
||||
armclient: mavros/cmd/arming
|
||||
modeclient: mavros/set_mode
|
||||
localpos: /mavros/local_position/pose
|
||||
stream: mavros/set_stream_rate
|
||||
altitude: mavros/global_position/rel_alt
|
||||
type:
|
||||
|
|
Binary file not shown.
|
@ -215,7 +215,8 @@ namespace rosbzz_node{
|
|||
else {ROS_ERROR("Provide a mode client name in Launch file"); system("rosnode kill rosbuzz_node");}
|
||||
if(node_handle.getParam("topics/stream", stream_client_name));
|
||||
else {ROS_ERROR("Provide a mode client name in Launch file"); system("rosnode kill rosbuzz_node");}
|
||||
|
||||
if(node_handle.getParam("topics/localpos", local_pos_sub_name));
|
||||
else {ROS_ERROR("Provide a localpos name in YAML file"); system("rosnode kill rosbuzz_node");}
|
||||
|
||||
|
||||
|
||||
|
@ -250,9 +251,9 @@ namespace rosbzz_node{
|
|||
stream_client = n_c.serviceClient<mavros_msgs::StreamRate>(stream_client_name);
|
||||
|
||||
users_sub = n_c.subscribe("users_pos", 1000, &roscontroller::users_pos,this);
|
||||
local_pos_sub = n_c.subscribe(local_pos_sub_name, 1000, &roscontroller::local_pos_callback, this);
|
||||
|
||||
|
||||
local_pos_sub = n_c.subscribe("/local_position", 1000, &roscontroller::local_pos_callback, this);
|
||||
|
||||
multi_msg=true;
|
||||
}
|
||||
/*---------------------------------------
|
||||
|
|
Loading…
Reference in New Issue