This is a small tutorial on how to debug a ROS2 C++ node usign VSCode.
This implementation was done using:
#!/usr/bin/env bash | |
set -Eeuo pipefail | |
trap cleanup SIGINT SIGTERM ERR EXIT | |
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
usage() { | |
cat <<EOF | |
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
Table of Contents:
#!/usr/bin/env python3 | |
import rospy | |
import urllib.request | |
import urllib.error | |
import socket | |
import os | |
# This is not a param to avoid param injection | |
# or unexpected programm killed because of a simple rosparam set with a wrong value |
import logging | |
import paramiko | |
class SSH: | |
def __init__(self): | |
pass | |
def get_ssh_connection(self, ssh_machine, ssh_username, ssh_password): | |
"""Establishes a ssh connection to execute command. | |
:param ssh_machine: IP of the machine to which SSH connection to be established. |
cmake_minimum_required(VERSION 3.8) | |
project(tsProject) | |
# Managing translations require LinguistTools module | |
# The cmake function is defined in the Qt installation tree: | |
# i.e. Qt5.9.1/5.9.1/gcc_64/lib/cmake/Qt5LinguistTools/Qt5LinguistToolsMacros.cmake | |
# Reference: https://doc.qt.io/qt-5/cmake-manual.html#qt5linguisttools-macros | |
find_package(Qt5 COMPONENTS Widgets LinguistTools) | |
set (CMAKE_CXX_STANDARD 11) | |
set(CMAKE_INCLUDE_CURRENT_DIR ON) |
(require 'dash) | |
(require 's) | |
(require 'loop) | |
(require 'icons-in-terminal) | |
(defun my-char-at-point (&optional p) | |
"P." | |
(let ((point (or p (point)))) | |
(if (< point (point-max)) (buffer-substring-no-properties point (1+ point)) | |
""))) |
Seeing this error in the bash shell when launching some apps, such as scite:
** (scite:5298): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
Update as per comments below.
It appears adding this library fixes the problem: at-spi2-core