Skip to content

Instantly share code, notes, and snippets.

View belem2050's full-sized avatar
🎯
Focusing

Moumouni BELEM belem2050

🎯
Focusing
View GitHub Profile
@belem2050
belem2050 / webserverClient.cs
Last active April 8, 2025 08:11
HTTP webserver client
class Program
{
static async Task Main(string[] args)
{
string url = "https://192.168.31.120:443/x";
int sleepDelqay = 500; //ms
HttpClientHandler handler = new HttpClientHandler()
{
@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