Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arming and takeoff with mavros ! #9578

Closed
ziggBee30 opened this issue May 31, 2018 · 8 comments
Closed

arming and takeoff with mavros ! #9578

ziggBee30 opened this issue May 31, 2018 · 8 comments

Comments

@ziggBee30
Copy link

ziggBee30 commented May 31, 2018

Hello

ROS version - 1.12.13
GAZEBO version - gazebo 7

I am successfully able to launch mavros_posix_sitl.launch, but i am unaware of using mavros command like arming and takeoff. However i tried using rosservice call /mavros/cmd arming and set it to true but its returning me FALSE.
I don't think mavros launch needs anything else for me to use service call for arming and takeoff.

please guide me on how can i arm and takeoff my iris in gazebo.

Thanks

@TSC21
Copy link
Member

TSC21 commented May 31, 2018

rosrun mavros mavsafety arm
rosrun mavros mavcmd takeoff 0 0 0 0 5 (being 5 the altitude)

@TSC21 TSC21 closed this as completed May 31, 2018
@ziggBee30
Copy link
Author

ziggBee30 commented May 31, 2018

Hi
Thanks for the comment, although I tried these rosrun and it's showing up request failed

@TSC21
Copy link
Member

TSC21 commented May 31, 2018

So you are probably missing something more fundamental here. Also it's not clear what's your current framework (meaning PX4 Firmware version, etc). Have you tried to launch the SITL simulation without ROS, by issuing make posix_sitl_default gazebo and after it opens (and gets a position lock), issue commander takeoff on the same window you launched the previous commad?

@TSC21
Copy link
Member

TSC21 commented May 31, 2018

Please also mark here:

  1. your ROS and MAVROS version;
  2. your Gazebo version;

Also, try launching QGC and check for the data coming from the vehicle and if there are any log error msgs being reported

@ziggBee30
Copy link
Author

Did try it , commander take off without ROS is showing no position lock.. I waited for much longer..

@TSC21
Copy link
Member

TSC21 commented May 31, 2018

Did try it , commander take off without ROS is showing no position lock.. I waited for much longer..

OK are you able to show us a video/screencapture of the procedure you take to launch the simulation and then the behavior you see on the simulator? Are you using the latest upstream master of PX4 or a recent stable release?

@ziggBee30
Copy link
Author

This is my console output now without ROS

-- http://pastebin.com/Hqx4sbxs

@ziggBee30
Copy link
Author

Here is my screen shot with mavros posix_sitl.launch

-- http://pasteboard.co/HnN6Yih.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants