ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How to run a servo using a pixhawk through MAVROS Offboard mode? [closed]

asked 2016-04-27 16:19:40 -0600

Vivek gravatar image

Hi,

I am using the a pixhawk connected to the odroid for a quadcopter. I am detecting the obstacles using a LIDAR. I am attaching the lidar to a servo so that I can do a lidar sweep.I am running the pixhawk in offboard mode and trying to control the servo motor through the auxiliary ports (AUX). We found a way in this link below.

https://groups.google.com/forum/m/#!t...

But the problem is that there is a problem in using nutshell with the pixhawk, Everytime I use the command below, I get either gibberish or a line saying that [Screen Is Terminating].

screen /dev/ttyACM0 BAUD_RATE 8N1

I have tried different baud rates like 57600 115200 921600 9600. None of them seem to work.

Kindly let me know if you a solution for this or if there is an alternative to controlling the servo using pixhawk.

Thanks, Vivek

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2017-04-20 16:22:12.830794

Comments

Here I have a code for servo_controller which may help. You may add comments for further doubts. Here I've used urdf files for convience, but sdf files can also be integrated. There is also a ros package which controls the servo which will aid you further https://github.com/Gauraviitkgp/Servo...

Gaurav Suryawanshi gravatar image Gaurav Suryawanshi  ( 2018-06-02 03:38:16 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-11-05 06:13:44 -0600

roberto colella gravatar image

Hi, Did you find the solution?

edit flag offensive delete link more

Comments

Hey ! Just something which may help. Don't have experience with Mavros so this is not the ROS way of doing it.

1) ( http://pleasingsoftware.blogspot.in/2... ) 2) Official Arducopter Doc, needs Mission Planner

aaditya_saraiya gravatar image aaditya_saraiya  ( 2017-11-30 10:57:59 -0600 )edit

Here I have a code for servo_controller which may help. You may add comments for further doubts. Here I've used urdf files for convience, but sdf files can also be integrated. There is also a ros package which controls the servo which will aid you further https://github.com/Gauraviitkgp/Servo...

Gaurav Suryawanshi gravatar image Gaurav Suryawanshi  ( 2018-06-02 03:37:56 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-04-27 16:19:40 -0600

Seen: 1,518 times

Last updated: Nov 05 '16