This is a ROS 2 wrapper for Misty II, enabling control of Misty using ROS 2 topics and services. The node communicates with Misty’s API to send movement commands, retrieve battery status, and perform actions like speech and LED control.
- Movement Control: Uses
/cmd_velto drive Misty. - Speech: Misty can speak text received via a ROS 2 topic.
- LED Control: Change Misty's LED color.
- Battery Monitoring: Publishes battery status.
Ensure you have ROS 2 Foxy or Humble installed. Follow ROS 2 installation instructions.
pip install requestsEdit misty_ros2_wrapper.py and update:
self.misty_ip = '192.168.1.100' # Replace with Misty's IPClone and build the ROS 2 package:
cd ~/ros2_ws/src
git clone <your-repo-url> misty_ros2
cd ~/ros2_ws
colcon build
source install/setup.bashros2 run misty_ros2 misty_ros2_wrapperPublish a geometry_msgs/Twist message to /cmd_vel:
ros2 topic pub /cmd_vel geometry_msgs/msg/Twist "{linear: {x: 0.1, y: 0.0, z: 0.0}, angular: {x: 0.0, y: 0.0, z: 0.2}}"ros2 topic pub /misty/speak std_msgs/msg/String "data: 'Hello from ROS 2!'"ros2 topic pub /misty/led std_msgs/msg/String "data: 'red'"ros2 topic echo /misty/battery- Face recognition feedback
- Object detection
- RViz integration
MIT License