Closed SiddharthPatel45 closed 7 years ago
What this command returns?
rosnode info /mavros
rosnode info /mavros
--------------------------------------------------------------------------------
Node [/mavros]
Publications:
* /mavros/manual_control/control [mavros_msgs/ManualControl]
* /mavros/adsb/vehicle [mavros_msgs/ADSBVehicle]
* /tf [tf2_msgs/TFMessage]
* /mavros/radio_status [mavros_msgs/RadioStatus]
* /mavros/setpoint_raw/target_local [mavros_msgs/PositionTarget]
* /mavros/imu/atm_pressure [sensor_msgs/FluidPressure]
* /mavros/altitude [mavros_msgs/Altitude]
* /mavros/global_position/compass_hdg [std_msgs/Float64]
* /mavros/hil/actuator_controls [mavros_msgs/HilActuatorControls]
* /mavros/global_position/global [sensor_msgs/NavSatFix]
* /mavros/target_actuator_control [mavros_msgs/ActuatorControl]
* /mavlink/from [mavros_msgs/Mavlink]
* /mavros/local_position/pose [geometry_msgs/PoseStamped]
* /mavros/imu/data [sensor_msgs/Imu]
* /mavros/wind_estimation [geometry_msgs/TwistStamped]
* /mavros/setpoint_raw/target_global [mavros_msgs/GlobalPositionTarget]
* /tf_static [tf2_msgs/TFMessage]
* /mavros/global_position/gp_origin [geographic_msgs/GeoPointStamped]
* /mavros/imu/temperature [sensor_msgs/Temperature]
* /mavros/px4flow/raw/optical_flow_rad [mavros_msgs/OpticalFlowRad]
* /diagnostics [diagnostic_msgs/DiagnosticArray]
* /mavros/global_position/raw/fix [sensor_msgs/NavSatFix]
* /mavros/battery [sensor_msgs/BatteryState]
* /mavros/setpoint_raw/target_attitude [mavros_msgs/AttitudeTarget]
* /mavros/imu/data_raw [sensor_msgs/Imu]
* /mavros/mission/waypoints [mavros_msgs/WaypointList]
* /mavros/cam_imu_sync/cam_imu_stamp [mavros_msgs/CamIMUStamp]
* /mavros/state [mavros_msgs/State]
* /mavros/rc/in [mavros_msgs/RCIn]
* /rosout [rosgraph_msgs/Log]
* /mavros/global_position/local [nav_msgs/Odometry]
* /mavros/vfr_hud [mavros_msgs/VFR_HUD]
* /mavros/px4flow/ground_distance [sensor_msgs/Range]
* /mavros/px4flow/temperature [sensor_msgs/Temperature]
* /mavros/global_position/rel_alt [std_msgs/Float64]
* /mavros/imu/mag [sensor_msgs/MagneticField]
* /mavros/local_position/odom [nav_msgs/Odometry]
* /mavros/extended_state [mavros_msgs/ExtendedState]
* /mavros/hil/controls [mavros_msgs/HilControls]
* /mavros/local_position/velocity [geometry_msgs/TwistStamped]
* /mavros/global_position/gp_lp_offset [geometry_msgs/PoseStamped]
* /mavros/global_position/raw/gps_vel [geometry_msgs/TwistStamped]
* /mavros/rc/out [mavros_msgs/RCOut]
* /mavros/home_position/home [mavros_msgs/HomePosition]
* /mavros/time_reference [sensor_msgs/TimeReference]
Subscriptions:
* /mavros/actuator_control [unknown type]
* /mavros/hil/optical_flow [unknown type]
* /mavros/global_position/set_gp_origin [unknown type]
* /tf [tf2_msgs/TFMessage]
* /mavros/setpoint_raw/attitude [unknown type]
* /mavros/hil/state [unknown type]
* /mavros/global_position/home [unknown type]
* /mavros/setpoint_velocity/cmd_vel [geometry_msgs/TwistStamped]
* /mavros/hil/gps [unknown type]
* /mavros/setpoint_accel/accel [unknown type]
* /mavros/odometry/odom [unknown type]
* /mavros/mocap/pose [geometry_msgs/PoseStamped]
* /mavros/hil/imu_ned [unknown type]
* /mavros/hil/rc_inputs [unknown type]
* /tf_static [tf2_msgs/TFMessage]
* /mavros/setpoint_raw/global [unknown type]
* /mavros/vision_pose/pose_cov [unknown type]
* /mavros/fake_gps/mocap/tf [unknown type]
* /mavlink/to [unknown type]
* /mavros/rc/override [unknown type]
* /mavros/setpoint_attitude/target_attitude [geometry_msgs/PoseStamped]
* /mavros/setpoint_raw/local [unknown type]
* /mavros/setpoint_velocity/cmd_vel_unstamped [unknown type]
* /mavros/vision_pose/pose [unknown type]
* /mavros/setpoint_attitude/thrust [mavros_msgs/Thrust]
* /mavros/setpoint_position/local [geometry_msgs/PoseStamped]
* /clock [rosgraph_msgs/Clock]
* /mavros/vision_speed/speed_vector [unknown type]
* /mavros/adsb/send [unknown type]
* /mavros/home_position/set [unknown type]
Services:
* /mavros/cmd/set_home
* /mavros/param/get
* /mavros/ftp/checksum
* /mavros/cmd/land
* /mavros/ftp/mkdir
* /mavros/param/pull
* /mavros/mission/push
* /mavros/ftp/close
* /mavros/ftp/rmdir
* /mavros/ftp/list
* /mavros/cmd/command_int
* /mavros/param/push
* /mavros/param/set
* /mavros/cmd/takeoff
* /mavros/ftp/truncate
* /mavros/get_loggers
* /mavros/home_position/req_update
* /mavros/cmd/command
* /mavros/ftp/open
* /mavros/ftp/rename
* /mavros/ftp/read
* /mavros/ftp/remove
* /mavros/ftp/reset
* /mavros/mission/pull
* /mavros/mission/clear
* /mavros/set_stream_rate
* /mavros/set_mode
* /mavros/cmd/arming
* /mavros/cmd/trigger_control
* /mavros/set_logger_level
* /mavros/mission/set_current
* /mavros/ftp/write
contacting node http://fnn-ST:43285/ ...
Pid: 10305
Connections:
* topic: /rosout
* to: /rosout
* direction: outbound
* transport: TCPROS
* topic: /tf
* to: /mavros
* direction: outbound
* transport: INTRAPROCESS
* topic: /tf_static
* to: /mavros
* direction: outbound
* transport: INTRAPROCESS
* topic: /mavros/state
* to: /safe_y6
* direction: outbound
* transport: TCPROS
* topic: /mavros/battery
* to: /safe_y6
* direction: outbound
* transport: TCPROS
* topic: /clock
* to: /gazebo (http://fnn-ST:43251/)
* direction: inbound
* transport: TCPROS
* topic: /tf
* to: /mavros (http://fnn-ST:43285/)
* direction: inbound
* transport: INTRAPROCESS
* topic: /tf_static
* to: /mavros (http://fnn-ST:43285/)
* direction: inbound
* transport: INTRAPROCESS
* topic: /mavros/mocap/pose
* to: /fake_mocap (http://fnn-ST:33429/)
* direction: inbound
* transport: TCPROS
* topic: /mavros/setpoint_attitude/thrust
* to: /safe_y6 (http://fnn-ST:37465/)
* direction: inbound
* transport: TCPROS
* topic: /mavros/setpoint_attitude/target_attitude
* to: /safe_y6 (http://fnn-ST:37465/)
* direction: inbound
* transport: TCPROS
* topic: /mavros/setpoint_position/local
* to: /safe_y6 (http://fnn-ST:37465/)
* direction: inbound
* transport: TCPROS
* topic: /mavros/setpoint_velocity/cmd_vel
* to: /safe_y6 (http://fnn-ST:37465/)
* direction: inbound
* transport: TCPROS
Actually, I formatted my system and did a fresh install of everything and now the setpoint_atttitude
command seems to work. Still it does not show up in the rqt_graph
, it only shows /mavros/setpoint_attitude/thrust
sending commands to /mavros
. But the UAV goes in offboard and I am able to send commands using it. Sorry, I apologize for the trouble. Thanks for the help and effort @vooon.
Hi guys! @andresR8 @TSC21 @TSC21 @vooon I followed your work and thanks for all your effort as you posted in #821 and #817. I tried to use the
/mavros/setpoint_attitude/
to publish attitude angles and throttle. I was not aware of the change in topic names and other features but after following this I found out that it has changed. Even with the latestmavros
source install, I am not able to use this topic. I publish tomavros/setpoint_attitude/thrust
and/mavros/setpoint_attitude/target_attitude
topics to send quaternion and thrust command butmavros
only subscribes to the thrust and not the attitude as can be seen from therqt_graph
below:It is publishing the commands because when I run
rostopic echo /mavros/setpoint_attitude/target_attitude
I see the commands. I tried all the things you guys mentioned related to this. Changed theuse_quaternion
in the px4_config.yaml, trieddidnt work. And the other minor changes. Can you please let me know if you were able to solve this issue, how did you do it. That would be great. Thanks a lot.
PS: Previously I was using the debian built mavros and even the throttle was not publishing but just then I came across this issue and did source installation and atleast was able to send something but not all. Anyways, it would be great if you help me out here.
MAVROS version and platform
Mavros: ?0.21.2? ROS: ?Kinetic? Ubuntu: ?16.04?
Autopilot type and version
[ X ] PX4
Version: 1.6.5dev
Node logs
roslaunch: Also, what is this unexpectedd command at the end. I get it everytime even without sending any commands
Diagnostics
Check ID
Let me know if any more info is required. Thanks. Cheers!