This is a small tutorial on how to debug a ROS2 C++ node usign VSCode.
This implementation was done using:
| #!/bin/bash | |
| # Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved. | |
| # | |
| # Redistribution and use in source and binary forms, with or without | |
| # modification, are permitted provided that the following conditions | |
| # are met: | |
| # * Redistributions of source code must retain the above copyright | |
| # notice, this list of conditions and the following disclaimer. | |
| # * Redistributions in binary form must reproduce the above copyright |
| // Compile with $ gcc water.c -o water | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <unistd.h> | |
| // Pin modes: | |
| #define INPUT (0) | |
| #define OUTPUT (1) | |
| #define LOW (0) | |
| #define HIGH (1) |