Here’s the README for Project 2: Keyboard Teleoperation Node.
This project is a ROS-based teleoperation node for controlling a robot or simulation interactively using keyboard inputs. It publishes velocity commands (geometry_msgs/Twist
) to a ROS topic, allowing users to move the robot in real time.
- Interactive teleoperation via keyboard inputs.
- Publishes linear and angular velocity commands to ROS for robot control.
- Configurable linear and angular speed.
- Simple and intuitive interface for controlling robot movements.
- Listens for keyboard inputs and maps them to velocity commands:
- Forward (
w
): Increaseslinear.x
. - Backward (
s
): Decreaseslinear.x
. - Left (
a
): Increasesangular.z
. - Right (
d
): Decreasesangular.z
. - Quit (
Ctrl+C
): Stops the node.
- Forward (
- Publishes these commands to the
/turtle1/cmd_vel
topic in real time.
-------------------------------------------------------
^
spin L: Q W spin R: E
forward
< Left A Right D >
back
S
Raise : Z Lower : X
Hover : F Quit : CTRL+C
--------------------------------------------------------
NIYAS SALIM
--------------------------------------------------------
- ROS Installed: Ensure you have ROS installed and set up on your system.
- Python Environment: Ensure the required Python libraries (
rospy
,geometry_msgs
) are installed.
-
Start ROS Core:
roscore
-
Run the Teleoperation Node:
python keyboard_teleop.py
-
Use the keyboard to interactively control the robot.
keyboard_teleoperation/
├── keyboard_teleop.py # Teleoperation Python script
└── README.md # Project documentation
- Add support for additional commands, such as speed adjustment.
- Integrate sensor data for obstacle avoidance.
- Implement GUI-based teleoperation.
Special thanks to the ROS community for providing resources and tools for robot development.
This project is licensed under the MIT License. See the LICENSE
file for details.
control turtle with custom key
chmod -x rosrun /.py