Skip to content

Commit

Permalink
separate rove_hw from rove to streamline local install
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonR99 committed Nov 7, 2024
1 parent 8e521d0 commit 9141cf9
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 44 deletions.
23 changes: 15 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,31 +41,38 @@ To install ROS2 and vcs natively: https://docs.ros.org/en/humble/Installation/Ub
Note: At the step `sudo apt install ros-humble-desktop` do `sudo apt install ros-humble-desktop-full` instead.

```bash
git clone https://github.com/gazebosim/ros_gz.git -b humble # Install gazebo locally
git clone https://github.com/clubcapra/rove.git
vcs import src < rove.repos
sudo rosdep init
rosdep update
rosdep install --from-paths src --ignore-src -r -y
colcon build --symlink-install
source install/setup.bash
```

If you intend to control the robot you might need to add the hardware package to the build (If you aren't sure, you probably don't need it):

```bash
vcs import src < rove_hw.repos
rosdep install --from-paths src --ignore-src -r -y
colcon build --symlink-install
source install/setup.bash
```


## Running Rove in simulation

IF YOU ARE RUNNING IN WSL: do this command
```bash
export LIBGL_ALWAYS_INDIRECT=0 export LIBGL_ALWAYS_SOFTWARE=1
```
Do these commands to run the gazebo simulation with physics enabled

Do these commands to run the gazebo simulation with physics enabled :
```bash
colcon build --symlink-install
source install/setup.bash
ros2 launch rove_bringup sim.launch.py
```
OR Do these commands to only run the rviz simulation (with joints control)
```bash
colcon build --symlink-install
source install/setup.bash
ros2 launch rove_description launch.py
```

## Running the controller with a usb cable

Expand Down
30 changes: 1 addition & 29 deletions rove.repos
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,4 @@ repositories:
ovis_ros2:
type: git
url: https://github.com/clubcapra/ovis_ros2
version: new-env-with-arm
ros_odrive:
type: git
url: https://github.com/IliTheButterfly/ros_odrive.git
version: 0fa84d3745a8c385076d29b7f54971e9f2d14de7
vectornav:
type: git
url: https://github.com/dawonn/vectornav.git
version: ros2
zed_wrapper:
type: git
url: https://github.com/stereolabs/zed-ros2-wrapper.git
version: master
zed_wrapper/zed-ros2-interfaces:
type: git
url: https://github.com/stereolabs/zed-ros2-interfaces.git
version: main
ros2_robotiq_gripper:
type: git
url: https://github.com/PickNikRobotics/ros2_robotiq_gripper.git
version: main
serial:
type: git
url: https://github.com/tylerjw/serial.git
version: ros2
ros2_control:
type: git
url: https://github.com/ros-controls/ros2_control.git
version: humble
version: new-env-with-arm
25 changes: 25 additions & 0 deletions rove_hw.repos
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
repositories:
ros_odrive:
type: git
url: https://github.com/IliTheButterfly/ros_odrive.git
version: 0fa84d3745a8c385076d29b7f54971e9f2d14de7
vectornav:
type: git
url: https://github.com/dawonn/vectornav.git
version: ros2
zed_wrapper:
type: git
url: https://github.com/stereolabs/zed-ros2-wrapper.git
version: master
zed_wrapper/zed-ros2-interfaces:
type: git
url: https://github.com/stereolabs/zed-ros2-interfaces.git
version: main
ros2_robotiq_gripper:
type: git
url: https://github.com/PickNikRobotics/ros2_robotiq_gripper.git
version: main
serial:
type: git
url: https://github.com/tylerjw/serial.git
version: ros2
4 changes: 2 additions & 2 deletions src/rove_bringup/launch/common.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def generate_launch_description():
# robot_localization_node_global,
#navsat_transform,
twist_mux,
#rviz,
rviz,
teleop,
#autonomy,
autonomy,
])
4 changes: 2 additions & 2 deletions src/rove_bringup/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<description>The rove_bringup package</description>
<maintainer email="capra@ens.etsmtl.ca">Capra</maintainer>
<license>GPLv3</license>

<build_depend>joy</build_depend>
<build_depend>teleop_twist_joy</build_depend>
<build_depend>twist_mux</build_depend>
Expand All @@ -28,4 +28,4 @@
<export>
<build_type>ament_cmake</build_type>
</export>
</package>
</package>
5 changes: 4 additions & 1 deletion src/rove_description/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@
<maintainer email="capra@ens.etsmtl.ca">Capra</maintainer>
<license>MIT</license>

<build_depend>ros2_control</build_depend>

<exec_depend>rviz2</exec_depend>
<exec_depend>xacro</exec_depend>
<exec_depend>velodyne_description</exec_depend>
<exec_depend>rviz_imu_plugin</exec_depend>
<exec_depend>ros2_control</exec_depend>

<buildtool_depend>ament_cmake</buildtool_depend>

Expand All @@ -20,4 +23,4 @@
<export>
<build_type>ament_cmake</build_type>
</export>
</package>
</package>
2 changes: 1 addition & 1 deletion src/rove_navigation/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
<export>
<build_type>ament_python</build_type>
</export>
</package>
</package>
2 changes: 1 addition & 1 deletion src/rove_zed/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@
<export>
<build_type>ament_python</build_type>
</export>
</package>
</package>

0 comments on commit 9141cf9

Please sign in to comment.