diff --git a/launch/ardrone.launch b/launch/ardrone.launch index 3173e7cf1a..809eab2924 100644 --- a/launch/ardrone.launch +++ b/launch/ardrone.launch @@ -1,8 +1,11 @@ + - + + + - + diff --git a/launch/gazebo_ardrone_empty_world.launch b/launch/gazebo_ardrone_empty_world.launch index 22bfb0c799..122a27867d 100644 --- a/launch/gazebo_ardrone_empty_world.launch +++ b/launch/gazebo_ardrone_empty_world.launch @@ -4,15 +4,18 @@ - + + - + - + + + diff --git a/launch/gazebo_ardrone_empty_world_offboard_attitudedemo.launch b/launch/gazebo_ardrone_empty_world_offboard_attitudedemo.launch index 717244abf5..596496194a 100644 --- a/launch/gazebo_ardrone_empty_world_offboard_attitudedemo.launch +++ b/launch/gazebo_ardrone_empty_world_offboard_attitudedemo.launch @@ -1,9 +1,12 @@ - + - + + + - - + + + diff --git a/launch/gazebo_ardrone_empty_world_offboard_positiondemo.launch b/launch/gazebo_ardrone_empty_world_offboard_positiondemo.launch index 9ff7f7d1fa..46f427f936 100644 --- a/launch/gazebo_ardrone_empty_world_offboard_positiondemo.launch +++ b/launch/gazebo_ardrone_empty_world_offboard_positiondemo.launch @@ -1,9 +1,12 @@ - + - + + + - - + + + diff --git a/launch/gazebo_ardrone_house_world.launch b/launch/gazebo_ardrone_house_world.launch index c636868eb2..89f27c901f 100644 --- a/launch/gazebo_ardrone_house_world.launch +++ b/launch/gazebo_ardrone_house_world.launch @@ -4,15 +4,18 @@ - + + - + - + + + diff --git a/launch/gazebo_iris_empty_world.launch b/launch/gazebo_iris_empty_world.launch index 8a4c128b90..0e80208e67 100644 --- a/launch/gazebo_iris_empty_world.launch +++ b/launch/gazebo_iris_empty_world.launch @@ -4,15 +4,18 @@ - + + - + - + + + diff --git a/launch/gazebo_iris_house_world.launch b/launch/gazebo_iris_house_world.launch index e4f9f6532c..d0e824d4b5 100644 --- a/launch/gazebo_iris_house_world.launch +++ b/launch/gazebo_iris_house_world.launch @@ -4,7 +4,8 @@ - + + @@ -13,6 +14,8 @@ - + + + diff --git a/launch/gazebo_iris_outdoor_world.launch b/launch/gazebo_iris_outdoor_world.launch index 22d55502d3..e75e57b877 100644 --- a/launch/gazebo_iris_outdoor_world.launch +++ b/launch/gazebo_iris_outdoor_world.launch @@ -4,7 +4,8 @@ - + + @@ -13,6 +14,8 @@ - + + + diff --git a/launch/iris.launch b/launch/iris.launch index be33cb85f4..fb9c0e6976 100644 --- a/launch/iris.launch +++ b/launch/iris.launch @@ -1,8 +1,11 @@ + - + + + - + diff --git a/launch/multicopter.launch b/launch/multicopter.launch index bc0e377715..6882f24137 100644 --- a/launch/multicopter.launch +++ b/launch/multicopter.launch @@ -1,6 +1,7 @@ + - + diff --git a/launch/multicopter_w.launch b/launch/multicopter_w.launch index f124082aa9..66c30d186f 100644 --- a/launch/multicopter_w.launch +++ b/launch/multicopter_w.launch @@ -1,8 +1,11 @@ + - + + + - + diff --git a/launch/multicopter_x.launch b/launch/multicopter_x.launch index 6355b87be9..c686eba390 100644 --- a/launch/multicopter_x.launch +++ b/launch/multicopter_x.launch @@ -1,8 +1,11 @@ + - + + + - + diff --git a/src/platforms/ros/nodes/mc_mixer/mc_mixer.cpp b/src/platforms/ros/nodes/mc_mixer/mc_mixer.cpp index 1098ec73b0..9b48294b64 100644 --- a/src/platforms/ros/nodes/mc_mixer/mc_mixer.cpp +++ b/src/platforms/ros/nodes/mc_mixer/mc_mixer.cpp @@ -40,7 +40,7 @@ #include #include #include -#include +#include #include class MultirotorMixer @@ -129,7 +129,7 @@ MultirotorMixer::MultirotorMixer(): _rotors(_config_index[0]) { _sub = _n.subscribe("actuator_controls_0", 1, &MultirotorMixer::actuatorControlsCallback, this); - _pub = _n.advertise("/mixed_motor_commands", 10); + _pub = _n.advertise("command/motor_speed", 10); if (!_n.hasParam("motor_scaling_radps")) { _n.setParam("motor_scaling_radps", 150.0); @@ -237,7 +237,7 @@ void MultirotorMixer::actuatorControlsCallback(const px4::actuator_controls_0 &m mix(); // publish message - mav_msgs::MotorSpeed rotor_vel_msg; + mav_msgs::CommandMotorSpeed rotor_vel_msg; double scaling; double offset; _n.getParamCached("motor_scaling_radps", scaling);