mj-kdl-wrapper  0.1.0
MuJoCo + KDL bridge for robot kinematics and dynamics
Loading...
Searching...
No Matches
test_utils.hpp
Go to the documentation of this file.
1/* SPDX-License-Identifier: MIT
2 * Copyright (c) 2026 Vamsi Kalagaturu
3 * See LICENSE for details. */
4
5#pragma once
6
7#include <iostream>
8
9/*
10 * Colored output helpers for mj_kdl_wrapper test binaries.
11 *
12 * Each macro accepts a stream expression as its argument, e.g.:
13 * TEST_INFO("nq=" << n);
14 * TEST_WARN("IK did not converge");
15 */
16
17// clang-format off
18#define TEST_WARN(msg) (std::cout << "\033[33m[ WARN ]\033[0m " << msg << "\n")
19#define TEST_INFO(msg) (std::cout << "\033[36m[ INFO ]\033[0m " << msg << "\n")
20// clang-format on