Skip to content

Ubuntu24 fix #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions .pre-commit-config.yaml

This file was deleted.

2 changes: 2 additions & 0 deletions Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#include "widgets/Table.h"

#include <boost/filesystem.hpp>
// #include <fmt/core.h>

namespace bfs = boost::filesystem;

namespace mc_rtc::imgui
Expand Down
2 changes: 2 additions & 0 deletions Plot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

#include "implot_internal.h"

// #include <fmt/core.h>

namespace mc_rtc::imgui
{

Expand Down
36 changes: 31 additions & 5 deletions Widget.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,37 @@
#include <memory>
#include <string>

#ifdef SPDLOG_FMT_EXTERNAL
# include <fmt/ranges.h>
#else
# include <spdlog/fmt/bundled/ranges.h>
#endif
// #ifdef SPDLOG_FMT_EXTERNAL
// # include <fmt/ranges.h>
// #else
// # include <spdlog/fmt/bundled/ranges.h>
// #endif

// #include <mc_rtc/fmt_eigen.h>
// #include <fmt/core.h>
// #include <vector>

#include <fmt/core.h>
#include <fmt/ranges.h>
#include <string_view>
#include <vector>
#include <string>
#include <Eigen/Dense>

template <>
struct fmt::formatter<Eigen::VectorXd> : fmt::formatter<std::string> {
template <typename FormatContext>
auto format(const Eigen::VectorXd& vec, FormatContext& ctx) {
std::string result = "[";
for (int i = 0; i < vec.size(); ++i) {
result += fmt::format("{}{}", vec[i], (i < vec.size() - 1 ? ", " : ""));
}
result += "]";
return formatter<std::string>::format(result, ctx);
}
};



namespace mc_rtc::imgui
{
Expand Down