mavlink / mavros

MAVLink to ROS gateway with proxy for Ground Control Station
Other
899 stars 994 forks source link

How to directly control certain motor through rostopic? #1343

Open championway opened 4 years ago

championway commented 4 years ago

Hi, I am trying to control certain motors through publishing ROS topic. I want to control the robot without GPS and IMU information. I've already tried to control the robot through /mavros/setpoint_velocity/cmd_vel, However, it seems like it needs to work with GPS and IMU information. So is there any way to directly control the certain motor through pwm or something else? By the way, I tried to use /mavros/rc/override and /mavros/actuator_control but they didn't work Can anyone could tell me how to use these two topics or other ways to control the motors? Thanks a lot.

Vishnu-Kr commented 1 year ago

Hi, I have worked on controlling motors with different drivers using ROS topic. you can look into my following repositories for controlling it. https://github.com/Vishnu-Kr/PWM-Motor-Control-ROS https://github.com/Vishnu-Kr/RMCS-2303-ROS-Control