Skip to content

Commit

Permalink
Initial files for WVN jackal demo
Browse files Browse the repository at this point in the history
  • Loading branch information
mmattamala committed Nov 3, 2023
1 parent ed56c59 commit e537ec5
Show file tree
Hide file tree
Showing 6 changed files with 115 additions and 2 deletions.
26 changes: 24 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
FROM nvidia/cuda:11.8.0-runtime-ubuntu20.04
#####################
# Base image #
#####################
FROM nvidia/cuda:11.8.0-runtime-ubuntu20.04 as base

# Labels
LABEL maintainer="Matias Mattamala;Jonas Frey"
Expand Down Expand Up @@ -88,4 +91,23 @@ ARG DEBIAN_FRONTEND=dialog
# Run bash
# ==
CMD ["/bin/bash"]
WORKDIR /root
WORKDIR /root


#####################
# Development image #
#####################

FROM base as dev

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update \
&& apt-get install -y \
ros-noetic-jackal-simulator \
ros-noetic-jackal-desktop \
ros-noetic-teleop-twist-keyboard \
ros-noetic-rqt-robot-steering \
&& rm -rf /var/lib/apt/lists/*

ENV DEBIAN_FRONTEND=dialog
1 change: 1 addition & 0 deletions docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ services:
build:
context: ..
dockerfile: docker/Dockerfile
target: dev
stdin_open: true
tty: true
network_mode: "host"
Expand Down
21 changes: 21 additions & 0 deletions wild_visual_navigation_sim/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
cmake_minimum_required(VERSION 3.0.2)
project(wild_visual_navigation_sim)

find_package(catkin REQUIRED COMPONENTS
rospy
nav_msgs
sensor_msgs
std_msgs
)

catkin_package(
CATKIN_DEPENDS
)

# catkin_python_setup()
# catkin_install_python(PROGRAMS scripts/wvn_feature_extractor_node.py
# scripts/wvn_learning_node.py
# scripts/overlay_images.py
# scripts/smart_carrot.py
# scripts/rosbag_play.sh
# DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
15 changes: 15 additions & 0 deletions wild_visual_navigation_sim/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Wild Visual Navigation Sim

Simulation environment to test Wild Visual Navigation (WVN). We use a modified Clearpath Jackal (adding a camera).

## Requirements

```sh
sudo apt install ros-noetic-jackal-simulator
```

## Running

```sh
roslaunch wild_visual_navigation_sim sim.launch
```
35 changes: 35 additions & 0 deletions wild_visual_navigation_sim/launch/sim.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<launch>
<!-- Extras to add required sensors -->
<!-- <arg name="extras_file" default="$(find wild_visual_navigation_sim)/urdf/extras.xacro"/>
<env name="JACKAL_URDF_EXTRAS" value="$(arg extras_file)"/> -->

<!-- Default simulation args -->
<arg name="use_sim_time" default="true" />
<arg name="gui" default="true" />
<arg name="headless" default="false" />
<arg name="world_name" default="$(find jackal_gazebo)/worlds/scenario1.world" />
<arg name="jackal_config" value="front_flea3" /> <!-- add camera -->

<!-- Optionally enable teleop for the simulation -->
<arg name="joystick" default="false" />

<!-- Launch Gazebo with the specified world -->
<include file="$(find gazebo_ros)/launch/empty_world.launch">
<arg name="debug" value="0" />
<arg name="gui" value="$(arg gui)" />
<arg name="use_sim_time" value="$(arg use_sim_time)" />
<arg name="headless" value="$(arg headless)" />
<arg name="world_name" value="$(arg world_name)" />
</include>

<!-- Spawn Jackal -->
<include file="$(find jackal_gazebo)/launch/spawn_jackal.launch">
<arg name="x" value="0" />
<arg name="y" value="0" />
<arg name="z" value="1.0" />
<arg name="yaw" value="0" />
<arg name="config" value="$(arg jackal_config)" />
<arg name="joystick" value="$(arg joystick)" />
</include>
</launch>
19 changes: 19 additions & 0 deletions wild_visual_navigation_sim/package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0"?>
<package format="2">
<name>wild_visual_navigation_sim</name>
<version>0.0.1</version>
<description>Simulation environment for wild_visual_navigation</description>
<maintainer email="[email protected]">Matias Mattamala</maintainer>
<maintainer email="[email protected]">Jonas Frey</maintainer>
<author email="[email protected]">Matias Mattamala</author>
<author email="[email protected]">Jonas Frey</author>

<license>Proprietary</license>

<buildtool_depend>catkin</buildtool_depend>

<depend>rospy</depend>
<depend>nav_msgs</depend>
<depend>sensor_msgs</depend>
<depend>std_msgs</depend>
</package>

0 comments on commit e537ec5

Please sign in to comment.