Skip to content

Commit 522dc3c

Browse files
authored
Merge pull request #68 from clubcapra/doc/clean_readme
Doc/clean readme
2 parents 7c26e80 + 5deba2f commit 522dc3c

File tree

12 files changed

+62
-56
lines changed

12 files changed

+62
-56
lines changed

.devcontainer/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ RUN vcs import src < rove.repos
6464
RUN rosdep update
6565

6666
# Install ROS dependencies
67-
RUN rosdep install --from-paths src --ignore-src --rosdistro humble -y
67+
RUN rosdep install --from-paths src --ignore-src -r -y
6868

6969
# Install gzharmonic after rosdep install
7070
RUN sudo apt install -y ros-humble-ros-gzharmonic

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ jobs:
1717
docker compose build --build-arg USER_UID=$(id -u) --build-arg USER_GID=$(id -g)
1818
- name: Build rove
1919
run: |
20-
docker compose run devcontainer bash -c "colcon build --packages-ignore zed_components zed_wrapper"
20+
docker compose run devcontainer bash -c "colcon build"
2121

README.md

+19-10
Original file line numberDiff line numberDiff line change
@@ -40,32 +40,41 @@ To install ROS2 and vcs natively: https://docs.ros.org/en/humble/Installation/Ub
4040

4141
Note: At the step `sudo apt install ros-humble-desktop` do `sudo apt install ros-humble-desktop-full` instead.
4242

43+
Before installing the robot software, you need to install the simulator : https://gazebosim.org/docs/harmonic/install_ubuntu/#binary-installation-on-ubuntu
44+
4345
```bash
44-
git clone https://github.com/gazebosim/ros_gz.git -b humble # Install gazebo locally
4546
git clone https://github.com/clubcapra/rove.git
47+
cd rove
4648
vcs import src < rove.repos
49+
sudo rosdep init
50+
rosdep update
51+
rosdep install --from-paths src --ignore-src -r -y
52+
colcon build --symlink-install
53+
source install/setup.bash
54+
```
55+
56+
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):
57+
58+
```bash
59+
vcs import src < rove_hw.repos
60+
rosdep install --from-paths src --ignore-src -r -y
4761
colcon build --symlink-install
4862
source install/setup.bash
4963
```
5064

65+
5166
## Running Rove in simulation
5267

5368
IF YOU ARE RUNNING IN WSL: do this command
5469
```bash
5570
export LIBGL_ALWAYS_INDIRECT=0 export LIBGL_ALWAYS_SOFTWARE=1
5671
```
57-
Do these commands to run the gazebo simulation with physics enabled
72+
73+
Do this command to run the gazebo simulation with physics enabled :
74+
5875
```bash
59-
colcon build --symlink-install
60-
source install/setup.bash
6176
ros2 launch rove_bringup sim.launch.py
6277
```
63-
OR Do these commands to only run the rviz simulation (with joints control)
64-
```bash
65-
colcon build --symlink-install
66-
source install/setup.bash
67-
ros2 launch rove_description launch.py
68-
```
6978

7079
## Running the controller with a usb cable
7180

rove.repos

+1-33
Original file line numberDiff line numberDiff line change
@@ -6,36 +6,4 @@ repositories:
66
ovis_ros2:
77
type: git
88
url: https://github.com/clubcapra/ovis_ros2
9-
version: new-env-with-arm
10-
ros_odrive:
11-
type: git
12-
url: https://github.com/IliTheButterfly/ros_odrive.git
13-
version: 0fa84d3745a8c385076d29b7f54971e9f2d14de7
14-
vectornav:
15-
type: git
16-
url: https://github.com/dawonn/vectornav.git
17-
version: ros2
18-
zed_wrapper:
19-
type: git
20-
url: https://github.com/stereolabs/zed-ros2-wrapper.git
21-
version: master
22-
zed_wrapper/zed-ros2-interfaces:
23-
type: git
24-
url: https://github.com/stereolabs/zed-ros2-interfaces.git
25-
version: main
26-
ros2_robotiq_gripper:
27-
type: git
28-
url: https://github.com/PickNikRobotics/ros2_robotiq_gripper.git
29-
version: main
30-
serial:
31-
type: git
32-
url: https://github.com/tylerjw/serial.git
33-
version: ros2
34-
control_msgs:
35-
type: git
36-
url: https://github.com/ros-controls/control_msgs.git
37-
version: humble
38-
ros2_control:
39-
type: git
40-
url: https://github.com/ros-controls/ros2_control.git
41-
version: humble
9+
version: new-env-with-arm

rove_hw.repos

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
repositories:
2+
ros_odrive:
3+
type: git
4+
url: https://github.com/IliTheButterfly/ros_odrive.git
5+
version: 0fa84d3745a8c385076d29b7f54971e9f2d14de7
6+
vectornav:
7+
type: git
8+
url: https://github.com/dawonn/vectornav.git
9+
version: ros2
10+
zed_wrapper:
11+
type: git
12+
url: https://github.com/stereolabs/zed-ros2-wrapper.git
13+
version: master
14+
zed_wrapper/zed-ros2-interfaces:
15+
type: git
16+
url: https://github.com/stereolabs/zed-ros2-interfaces.git
17+
version: main
18+
ros2_robotiq_gripper:
19+
type: git
20+
url: https://github.com/PickNikRobotics/ros2_robotiq_gripper.git
21+
version: main
22+
serial:
23+
type: git
24+
url: https://github.com/tylerjw/serial.git
25+
version: ros2

src/rove_bringup/launch/autonomy.launch.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def generate_launch_description():
4545

4646
nav = IncludeLaunchDescription(
4747
PythonLaunchDescriptionSource(
48-
os.path.join(pkg_rove_nav, "navigation.launch.py"),
48+
os.path.join(pkg_rove_nav, "launch", "navigation.launch.py"),
4949
),
5050
launch_arguments={
5151
"use_sim_time": use_sim_time,

src/rove_bringup/launch/common.launch.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def generate_launch_description():
113113
# robot_localization_node_global,
114114
#navsat_transform,
115115
twist_mux,
116-
#rviz,
116+
rviz,
117117
teleop,
118-
#autonomy,
118+
autonomy,
119119
])

src/rove_bringup/package.xml

+4-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
<description>The rove_bringup package</description>
77
<maintainer email="[email protected]">Capra</maintainer>
88
<license>GPLv3</license>
9-
9+
10+
11+
<build_depend>ros_gzharmonic</build_depend>
1012
<build_depend>joy</build_depend>
1113
<build_depend>teleop_twist_joy</build_depend>
1214
<build_depend>twist_mux</build_depend>
@@ -28,4 +30,4 @@
2830
<export>
2931
<build_type>ament_cmake</build_type>
3032
</export>
31-
</package>
33+
</package>

src/rove_description/package.xml

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@
77
<maintainer email="[email protected]">Capra</maintainer>
88
<license>MIT</license>
99

10+
<build_depend>ros2_control</build_depend>
11+
1012
<exec_depend>rviz2</exec_depend>
1113
<exec_depend>xacro</exec_depend>
1214
<exec_depend>velodyne_description</exec_depend>
1315
<exec_depend>rviz_imu_plugin</exec_depend>
16+
<exec_depend>ros2_control</exec_depend>
1417

1518
<buildtool_depend>ament_cmake</buildtool_depend>
1619

@@ -20,4 +23,4 @@
2023
<export>
2124
<build_type>ament_cmake</build_type>
2225
</export>
23-
</package>
26+
</package>

src/rove_navigation/package.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
<export>
1919
<build_type>ament_python</build_type>
2020
</export>
21-
</package>
21+
</package>

src/rove_navigation/setup.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from setuptools import find_packages, setup
2-
from glob import glob
32
import os
3+
from glob import glob
44

55
package_name = 'rove_navigation'
66

@@ -12,7 +12,7 @@
1212
('share/ament_index/resource_index/packages',
1313
['resource/' + package_name]),
1414
('share/' + package_name, ['package.xml']),
15-
(os.path.join('share', package_name), glob('launch/*.launch.py')),
15+
('share/' + package_name + '/launch', glob('launch/*.launch.py')),
1616
('share/' + package_name + '/config', glob('config/*')),
1717
],
1818
install_requires=['setuptools'],
@@ -22,7 +22,6 @@
2222
description='TODO: Package description',
2323
license='TODO: License declaration',
2424
tests_require=['pytest'],
25-
package_dir={'': 'src'},
2625
entry_points={
2726
'console_scripts': [
2827
'navigate_to_person = rove_navigation.navigate_to_person:main',

src/rove_zed/package.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@
3030
<export>
3131
<build_type>ament_python</build_type>
3232
</export>
33-
</package>
33+
</package>

0 commit comments

Comments
 (0)