ros2 Humble, ubuntu 22.04
Clone:
mkdir -p ~/husky_ws/src
cd ~/husky_ws/src
git clone https://github.com/husky/husky.git
cd husky
# docker build -t livox -f Dockerfile . | |
# rocker --x11 --nvidia --network host livox | |
# set host ip to 192.168.1.5 | |
# assume Livox ip is 192.168.1.177 | |
# inside container: | |
# ping 192.168.1.177 | |
# vim /ws/src/livox_ros_driver2/config/MID360_config.json | |
# screen -m bash -c '. /ws/devel/setup.sh && roslaunch /ws/src/livox_ros_driver2/launch_ROS1/msg_MID360.launch' |
#include <glob.h> | |
#include <vector> | |
#include <string> | |
inline std::vector<std::string> glob(const std::string& pat){ | |
using namespace std; | |
glob_t glob_result; | |
glob(pat.c_str(),GLOB_TILDE,NULL,&glob_result); | |
vector<string> ret; | |
for(unsigned int i=0;i<glob_result.gl_pathc;++i){ | |
ret.push_back(string(glob_result.gl_pathv[i])); |