Welcome to the next pikoTutorial! The error we're handling today is a ROS runtime error: The message type 'X' is invalid Typically occurring when calling commands like: ros2 topic echo /topic_name What does it mean? To understand where does this err...
Welcome to the next pikoTutorial! The minimal receiver import struct from argparse import ArgumentParser from socket import socket, AF_INET, SOCK_DGRAM, inet_aton, IPPROTO_IP, \ IP_ADD_MEMBERSHIP, INADDR_ANY, SOL_SOCKET, SO_REUSEADDR # define com...
Welcome to the next pikoTutorial! What's the problem? Let's take a look at the simple example below: #include <iostream> #include <future> #include <thread> #include <memory> // define a class spinning up a thread class SomeClass { public: SomeCl...
Welcome to the next pikoTutorial! Below you can find the code that we will be reviewing today. Before you scroll down to section where I fix it, feel free to check how many mistakes you can find. #include <iostream> class Logger { public: ~Logge...
The D programming language, commonly known as DLang, offered a fresh perspective on system-level programming by blending familiar features of C++ with modern mechanisms to enhance code safety, simplicity, and performance. Created by Walter Bright, it...
Welcome to the next pikoTutorial! Imagine you're building an application that processes some data and once it's done, the user needs to be notified about the result. Since you don’t want to hard-code the notification logic, it’s better to allow the u...
Welcome to the next pikoTutorial! The error we're handling today is a C++ compilation error: error: use of deleted function X What does it mean? In C++, the error occurs when you try to invoke a function that has been explicitly marked as deleted or ...
Welcome to the next pikoTutorial! The minimal TCP server A TCP server listens for incoming connections on a specified port and communicates with clients over that connection. from socket import socket, AF_INET, SOCK_STREAM from argparse import Argume...
Welcome to the next pikoTutorial! The select command in shell scripting provides an easy way to present a list of options to the user and handle their selection. It is particularly useful when you have a predefined set of choices and want the user to...
Welcome to the next pikoTutorial! nullptr and the segmentation fault One of the first things that beginner C++ programmers realize after starting to play around with pointers is that dereferencing a nullptr leads to an immediate program crash caused ...