Skip to content

Instantly share code, notes, and snippets.

View belem2050's full-sized avatar

Moumouni BELEM belem2050

  • Somewhere in 3D
  • 05:02 (UTC +02:00)
View GitHub Profile
@belem2050
belem2050 / WebsocketROS2Client.py
Created November 11, 2023 16:40
Class to send and receive ROS2 messages to a ROS master that has a rosbridge websocket.
#!/usr/bin/env python
import json
from uuid import uuid4
# Note that this needs:
# sudo pip install websocket-client
# not the library called 'websocket'
import websocket
import rclpy