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

Revision history [back]

click to hide/show revision 1
initial version

Try running rosrun teleop_twist_keyboard teleop_twist_keyboard.py

(To install : sudo apt-get install ros-$YOURDISTRO$-teleop-twist-keyboard)

It should work now. It will give additional yaw control. Or else, You can create a separate node which publishes /cmd_vel topic so that the quad can use to navigate. If you can't create a node, publish the velocity using "rostopic pub" utility

rostopic pub -1 /cmd_vel geometry_msgs/Twist -- '[0.0, 0.0, 0.3]' '[0.0, 0.0, 0.0]'

This will give linear vertical velocity. To check: Use rqt_plot. Make sure that your initiated node publishes the /cmd_Vel topic to Gazebo model.

Try running running

rosrun teleop_twist_keyboard teleop_twist_keyboard.py

teleop_twist_keyboard.py

(To install : sudo apt-get install ros-$YOURDISTRO$-teleop-twist-keyboard)ros-$YOURDISTRO$-teleop-twist-keyboard)

It should work now. It will give additional yaw control. Or else, You can create a separate node which publishes /cmd_vel /cmd_vel topic so that the quad can use to navigate. If you can't create a node, publish the velocity using "rostopic pub" "rostopic pub" utility

rostopic pub -1 /cmd_vel geometry_msgs/Twist -- '[0.0, 0.0, 0.3]' '[0.0, 0.0, 0.0]'

0.0]'

This will give linear vertical velocity. To check: Use rqt_plot. rqt_plot. Make sure that your initiated node publishes the /cmd_Vel /cmd_Vel topic to Gazebo model.