Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

<<<<<<< HEAD

rm -rf ./* sudo gedit sudo find / -name libstdc++.so.6* strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX ls /dev | grep ttyUSB cmake -DCMAKE_BUILD_TYPE=Debug .. cmake -DCMAKE_BUILD_TYPE=Release .. ulimit -c unlimited pwd sudo ./bin/code_struct

sudo apt install libevdev-dev

// const int imagesPerRow = 4; // 每行显示4张图片 // const int imagesPerCol = 4; // 每列显示4张图片 // const int totalImages = imagesPerRow * imagesPerCol; // 总共16张图片 // const int imageWidth = 100; // 每张图片的宽度 // const int imageHeight = 100; // 每张图片的高度

// cv::Mat combinedImage(imageHeight * imagesPerCol, imageWidth * imagesPerRow, CV_8UC3, cv::Scalar(0, 0, 0));

// for (int i = 0; i < totalImages; ++i) { // std::string S_id = formatNumber(i,2); // std::string filePath = "../Capture_Photo/xx_xxx_2/" + S_id + "_200_2.jpg"; // cv::Mat image = cv::imread(filePath);

// if (image.empty()) { // std::cout << "Error loading image: " << filePath << std::endl; // continue; // }

// // Resize image to fit in the grid // cv::resize(image, image, cv::Size(imageWidth, imageHeight));

// // Calculate position in the combined image // int row = i / imagesPerRow; // int col = i % imagesPerRow; // image.copyTo(combinedImage(cv::Rect(col * imageWidth, row * imageHeight, imageWidth, imageHeight))); // }

// cv::imshow("Combined Image", combinedImage); // cv::waitKey(0); // cv::destroyAllWindows();

#include #include #include

int main() { std::string directoryPath = "../Capture_Photo/xx_xxx_1"; // 目标目录

for (const auto& entry : std::filesystem::directory_iterator(directoryPath)) {
    if (entry.path().extension() == ".jpg") {
        std::string oldName = entry.path().string();
        std::string newName = oldName; // 保留原始名称

        // 更改最后一位
        newName[newName.size() - 5] = 'X'; // 将倒数第二个字符(文件名部分)改为 'X'

        std::filesystem::rename(oldName, newName);
        std::cout << "Renamed: " << oldName << " to " << newName << std::endl;
    }
}

return 0;

}

code_struct_linux_slj

rm -rf ./*

b1e1265 (所有功能基本完成且测试——2024/7/30)

11.5 在class RobotRunner中修改 PeriodicTask(0.0015,"robotrunner",100,sched_get_priority_max(SCHED_FIFO),SCHED_FIFO) 的第一个参数就可以修改fps 具体计算为x=1/fps

ver 6.2.4

lib6PrintSupport.so.6: cannot open shared object file: No such file or directory-------result https://blog.csdn.net/learning_man/article/details/120274904

cmake ver https://blog.csdn.net/Man_1man/article/details/126467371

wsl-ssh https://blog.csdn.net/m0_57195758/article/details/136591106

wsl-usb https://blog.csdn.net/qq_43066145/article/details/139812587

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages