Husky Simulation

https://github.com/alualu628628/Husky_Simulation

Husky Simulation

This is a simulated system (based on ros gazebo) for outdoor mobile robot Husky to explore the unknown outdoor scenes.

Installation

The system is based on ROS - Indigo and particularly the Gazebo.
We suggest building this system on Ubuntu 14.04.
Please follow the following steps in order to install the package along with its dependences:

  • Install ROS-Indigo full desktop (guide).

  • Install Husky official package (guide)

  • Install the grid_map package that can be optionally used for mapping (guide)(i.e.,sudo apt-get install ros-indigo-grid-map)

  • check whether other dependences of Husky package is need. Assuming Husky package is cloned under $HUSKY_DIR$:

cd $HUSKY_DIR$
rosdep install --from-path src --ignore-src --rosdistro=indigo -y
  • Install this package:
cd $HUSKY_DIR$
catkin_make -DCMAKE_BUILD_TYPE=Release
  • Set the environment variables:
  1. set the environment variable at ~/.bashrc as:
gedit ~/.bashrc 
  1. comment the environment variable of HUSKY_GAZEBO_DESCRIPTION if you have claimed it:
# export HUSKY_GAZEBO_DESCRIPTION=$(rospack find husky_gazebo)/urdf/description.gazebo.xacro
  1. use husky_custom_description as the HUSKY_DESCRIPTION value instead of raw package
sh $(rospack find husky_custom_description)/env-hooks/50.husky_custom_description.sh
  1. set the correct path of official placeholder where the system could locate the entry of extension
export HUSKY_URDF_EXTRAS=$(rospack find husky_description)/urdf/empty.urdf
  1. use husky_custom_gazebo as the HUSKY_GAZEBO_DESCRIPTION value instead of raw package
sh $(rospack find husky_custom_gazebo)/env-hooks/50.husky_custom_gazebo.sh

Running

setup the environment variables
Run source devel/setup.bash in project root in order to .
Instead, We strongly recommend writing the variables into ~/.bashrc so that you don’t need to set up environment variables any more when you run this project.

launches customized husky gazebo (gazebo).

roslaunch husky_gazebo husky_playpen.launch

launches customized husky visualization (rviz).

roslaunch husky_viz view_robot.launch

LOAM can be used to SLAM (mapping and location robot) as follow(gp-insac algorithm is launched parallelly, which is to devide ground, obstacle and boundary points):

roslaunch loam_velodyne loam_velodyne.launch

For mapping with topological and geometrical information

roslaunch topo_confidence_map mapping.launch

To automatically send the goal of mapping results to husky moving action

roslaunch husky_navigation_goals send_goal.launch 

Other launch files can be used for different other outdoor environments e.g., husky_wild.launch, husky_terrain.launch.

Parameters

output the result in your own path, please modify below codes in ‘/simulation_ws/src/topo_confidence_map/launch/mapping.launch’

<arg name="fileoutputpath" default="/home/yourname/"/>
### Husky 在 IT 领域的应用与定义 Husky 是一种 Git Hook 工具,它允许开发者在执行特定的 Git 操作时触发自定义脚本。通过这种方式,可以在开发流程的关键节点上强制实施代码质量标准或其他自动化操作[^1]。 #### 主要功能 Husky 支持多种类型的 Git Hooks,其中最常用的是 `pre-commit` 和 `commit-msg`。以下是其主要用途: - **Pre-commit**: 可以用来运行测试、格式化代码或检查文件内容是否符合团队约定的标准。这有助于防止不符合规范的代码进入版本控制系统。 示例配置如下所示: ```json { "husky": { "hooks": { "pre-commit": "npm run lint && npm test" } } } ``` - **Commit-msg**: 能够拦截提交消息并对其进行校验,通常配合 Commitlint 使用,确保每次提交的消息都遵循既定的格式规则。 下面是一个典型的例子: ```json { "husky": { "hooks": { "commit-msg": "npx commitlint --edit $GIT_PARAMS" } } } ``` 除了上述两种钩子外,Husky 还支持其他多个阶段的钩子函数,比如 pre-push, prepare-commit-msg 等等,满足不同的需求场景。 #### 技术优势 采用 Husky 不仅能提升项目维护效率,还能促进团队协作的一致性。对于追求高质量交付的企业来说尤为重要[^2]。 另外值得注意的是,尽管 Husky 提供了强大的功能选项,但在实际部署过程中也需要考虑到可能带来的额外复杂度以及潜在的学习成本问题。 ```javascript // 安装 husky 的命令行指令 npm install husky --save-dev ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值