Jaeyoung-Lim / mavros_humantracking

Offboard gimbal control for PX4 enabled vehicles using MAVROS
BSD 3-Clause "New" or "Revised" License
36 stars 17 forks source link

Camera does not move #10

Closed mzahana closed 4 years ago

mzahana commented 4 years ago

Hi @Jaeyoung-Lim I am trying to control camera gimbal using /mavros/mount_control/command mavros topic.

I published,

rostopic pub --once /mavros/mount_control/command mavros_msgs/MountControl "header:  
  seq: 0                    
  stamp: {secs: 0, nsecs: 0}
  frame_id: 'map'
mode: 2
pitch: -1.0
roll: 0.0
yaw: 0.0
altitude: 0.0
latitude: 0.0
longitude: 0.0"

However, the camera in Gazebo didn't move. Do I need to to do something else? e.g. setting some PX4 parameters? I am using mavros installed using apt-get and PX4 v1.10.1

Jaeyoung-Lim commented 4 years ago

@mzahana Are you saying that this package is broken?

why are you trying to manually publish topics?

I think the gimbal only moves in auto mode

mzahana commented 4 years ago

I have not tested the package. I was just looking at how you control the gimbal from ROS.

Anyway, I found the issue. I was sending small values in radians while it should be in degrees and that's why it was not noticable. Also, the vehicle has to be armed.