Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
77d3ce2
add ln to docker run and join
hchengwang Sep 19, 2023
3ccd98f
Create README.md
hchengwang Sep 19, 2023
4f62da6
add README for locobot code
hchengwang Sep 20, 2023
669baff
update .gitignore
hchengwang Sep 20, 2023
8b300dc
add host laptop/pc workspace
hchengwang Sep 20, 2023
7cea538
add mit ocw oop code
hchengwang Sep 20, 2023
4dd6c41
Docker: Add pytest in dockerfile
sunfu-chou Sep 20, 2023
e5e7e57
Docker: Image is pushed to argnctu
sunfu-chou Sep 20, 2023
f16b2c2
revise docstring
hchengwang Sep 22, 2023
8676958
add how to run pytest
hchengwang Sep 22, 2023
e6585ed
add test cat class via GitHub Copilot
hchengwang Sep 22, 2023
447eb8b
add testing code for Person class via Copilot
hchengwang Sep 22, 2023
814b1d6
Feat: update environment directly set_ip 127.0.0.1
wellyowo Oct 3, 2023
6a17331
Docker: Add python pkg scipy opencv into docker
sunfu-chou Oct 3, 2023
d374d90
Feat: update set ip with 127.0.0.1
wellyowo Oct 3, 2023
07124c6
Docker: Fix Image tag from amd64 to latest
sunfu-chou Oct 3, 2023
e449b66
add rostest_example
hchengwang Oct 3, 2023
31b627c
Merge branch 'master' of github.com:ARG-NCTU/LoCoBot-RSA
hchengwang Oct 3, 2023
5672d79
update CMakeLists.txt
hchengwang Oct 3, 2023
47ced01
rm unused average_quacks
hchengwang Oct 3, 2023
1b933b0
modify shebang to python3
hchengwang Oct 3, 2023
135f89f
Feat: remove .pyc file add .pyc file type into .gitignore
wellyowo Oct 3, 2023
fea3859
Merge branch 'master' of github.com:ARG-NCTU/LoCoBot-RSA
wellyowo Oct 3, 2023
e4bcdb7
Feat: add ros practice package to learn publisher subscriber
wellyowo Oct 6, 2023
2a7b5b4
add scripts folder and sys.addpth for pytest
hchengwang Oct 6, 2023
348381e
Merge branch 'master' of github.com:ARG-NCTU/LoCoBot-RSA
hchengwang Oct 6, 2023
3a56982
add test case within scripts
hchengwang Oct 6, 2023
7be85c8
update Quacker and test
hchengwang Oct 6, 2023
1b6a5b3
add arg_tools and add path from arg_utils to rostest
Oct 9, 2023
101ad0f
add diff dir
Oct 9, 2023
db021c7
Merge pull request #1 from uwe77/master
uwe77 Oct 9, 2023
ead68b3
add pytest
uwe77 Oct 9, 2023
149c22f
Create README.md
uwe77 Oct 11, 2023
fbfd35a
add image
uwe77 Oct 11, 2023
7a1f983
Update README.md
uwe77 Oct 11, 2023
4f1d0a4
Update README.md
uwe77 Oct 11, 2023
cbbbf5c
Merge pull request #2 from uwe77/master
uwe77 Oct 11, 2023
927f93b
Feat: Update uwb node
sunfu-chou Oct 12, 2023
b447fd1
Feat: Update uwb node
sunfu-chou Oct 12, 2023
cb50fa5
Config: Update uwb config for ee632
sunfu-chou Oct 12, 2023
adbd11b
Update: change set ros master ros ip method for locobot
wellyowo Oct 12, 2023
bdb43de
Merge branch 'master' of github.com:ARG-NCTU/LoCoBot-RSA
wellyowo Oct 12, 2023
eefb01c
Update: set_ip method of turn on locobot
wellyowo Oct 12, 2023
7889cf6
mv arg_utils ros package src to scripts
hchengwang Oct 12, 2023
c21f63e
rename testing_XXX -> test_XXX
hchengwang Oct 12, 2023
4e2fc95
update test_pypkg.py as pytest
hchengwang Oct 12, 2023
ed41597
Docker: Add python3-tk
sunfu-chou Oct 12, 2023
1f96e37
Merge branch 'master' of github.com:ARG-NCTU/LoCoBot-RSA
sunfu-chou Oct 12, 2023
68626b1
add transformation and plotting libs
hchengwang Oct 12, 2023
b5b4013
Merge branch 'master' of github.com:ARG-NCTU/LoCoBot-RSA
hchengwang Oct 12, 2023
f4fa54a
Docker: add tkinter and pytransform3d into docker_file
wellyowo Oct 13, 2023
79c87b9
Merge branch 'master' of github.com:ARG-NCTU/LoCoBot-RSA
wellyowo Oct 13, 2023
41814a7
add apriltag ros test submodules
hchengwang Oct 13, 2023
b10531c
Merge branch 'master' of github.com:ARG-NCTU/LoCoBot-RSA
hchengwang Oct 13, 2023
249a490
update submodule
hchengwang Oct 13, 2023
91cbdee
sync to submodule
hchengwang Oct 13, 2023
5c83f6e
Merge branch 'master' into arg_utils_uwe
uwe77 Oct 16, 2023
01dd8c0
delete arg_utils to add a submodule arg_utils
uwe77 Oct 17, 2023
96b4cdc
add arg_utils submodule
uwe77 Oct 17, 2023
64d351f
modify importme pytest and delete testing pypkg_from_utils
uwe77 Oct 17, 2023
e3a8b24
add wget and apriltag
uwe77 Oct 18, 2023
1af0c17
update arg_utils
uwe77 Oct 18, 2023
31bcad9
submodule: arg_utils change dir data name
uwe77 Oct 19, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ devel/
.catkin_tools
logs
__pycache__/
tags
*.pyc
9 changes: 9 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[submodule "low_cost_ws/src/apriltags_ros_test"]
path = low_cost_ws/src/apriltags_ros_test
url = git@github.com:Sensing-Intelligent-System/apriltags_ros_test.git
[submodule "low_cost_ws/src/apriltags_ros"]
path = low_cost_ws/src/apriltags_ros
url = git@github.com:Sensing-Intelligent-System/apriltags_ros.git
[submodule "low_cost_ws/src/arg_utils"]
path = low_cost_ws/src/arg_utils
url = git@github.com:ARG-NCTU/arg_utils.git
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# LoCoBot-RSA

This is the class repo for Design and Implementation of Robotic Systems and Applications.

## Installation

By default we use native Ubuntu 20.04 (or dual boot if you are using Windows).

### Several tools are required

Git: please follow
* SSH Key: https://github.com/ARG-NCTU/oop-python-nycu/blob/main/tutorials/00-ssh-key.md

### Some tools are recommended
* NeoVim and GitHub Copilot: https://github.com/ARG-NCTU/oop-python-nycu/blob/main/tutorials/04-copilot-neovim-nodejs.md

## To Get Started

We will use a docker image with ROS noetic.
```
source docker_run.sh
```
4 changes: 2 additions & 2 deletions docker/build.bash
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

REPOSITORY="sunfuchou/rsa"
TAG="amd64"
REPOSITORY="argnctu/rsa"
TAG="latest"

IMG="${REPOSITORY}:${TAG}"

Expand Down
4 changes: 2 additions & 2 deletions docker/docker_join.bash
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env bash

NAME=locobot_rsa
REPOSITORY="sunfuchou/rsa"
TAG="amd64"
REPOSITORY="argnctu/rsa"
TAG="latest"
REPO_NAME=LoCoBot-RSA

IMG="${REPOSITORY}:${TAG}"
Expand Down
4 changes: 2 additions & 2 deletions docker/docker_run.bash
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
ARGS=("$@")

NAME=rsa
REPOSITORY="sunfuchou/rsa"
TAG="amd64"
REPOSITORY="argnctu/rsa"
TAG="latest"
REPO_NAME=LoCoBot-RSA

IMG="${REPOSITORY}:${TAG}"
Expand Down
57 changes: 34 additions & 23 deletions docker/dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,33 +25,44 @@ RUN echo "${USER}:rsa" | chpasswd

RUN apt-get -o Acquire::ForceIPv4=true update && apt-get -yq dist-upgrade \
&& apt-get -o Acquire::ForceIPv4=true install -yq --no-install-recommends \
locales \
curl \
cmake \
make \
git \
vim \
wget \
sudo \
lsb-release \
build-essential \
net-tools \
apt-utils \
software-properties-common \
dialog \
libffi-dev \
python3-dev \
python3-pip \
python3-setuptools \
apt-transport-https \
libglew-dev
locales \
curl \
cmake \
make \
git \
vim \
wget \
sudo \
lsb-release \
build-essential \
net-tools \
apt-utils \
software-properties-common \
dialog \
libffi-dev \
python3-dev \
python3-pip \
python3-setuptools \
apt-transport-https \
libglew-dev \
python3-tk

RUN pip3 install --upgrade pip \
&& pip3 install --upgrade setuptools \
&& pip3 install python_tsp pypozyx
&& pip3 install \
python_tsp \
pypozyx \
pytest \
scipy \
opencv-python \
dbg \
pytransform3d \
wget \
apriltag


RUN apt-get -o Acquire::ForceIPv4=true update && apt-get -yq dist-upgrade \
&& apt-get -o Acquire::ForceIPv4=true install -yq --no-install-recommends \
ros-${ROS_DISTRO}-robot-localization
&& apt-get -o Acquire::ForceIPv4=true install -yq --no-install-recommends \
ros-${ROS_DISTRO}-robot-localization

RUN echo 'source /opt/ros/noetic/setup.bash' >> ~/.bashrc
3 changes: 3 additions & 0 deletions docker/push.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

docker image push argnctu/rsa:latest
1 change: 1 addition & 0 deletions docker_join.bash
1 change: 1 addition & 0 deletions docker_run.bash
7 changes: 7 additions & 0 deletions locobot/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Code to Run within a LoCoBot

The code in this folder is supposed to run on NYCU LoCoBot

## NYCU LoCoBot Settings

The settings follows the orignial version distributed with the hardware.
30 changes: 29 additions & 1 deletion locobot/environment.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
#! /bin/bash
if [ "$1" ]; then

echo "ROS MASRER $1"

export ROS_MASTER_URI=http://$1:11311

else

echo "ROS MASRER 127.0.0.1"

export ROS_MASTER_URI=http://127.0.0.1:11311

fi



if [ "$2" ]; then

echo "ROS IP $2"

export ROS_IP=$2

else

echo "ROS IP 127.0.0.1"

export ROS_IP=127.0.0.1

fi

source /opt/ros/melodic/setup.bash
source ~/WFH_locobot/ROS/catkin_ws/devel/setup.bash
source ~/WFH_locobot/set_ip.sh $1 $2
31 changes: 30 additions & 1 deletion locobot/set_wfh_workspace_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,36 @@
# load pyrobot env
load_pyrobot_env
# source WFH workspace and set_rospkg_path
source ~/WFH_locobot/set_ip.sh $1 $2
if [ "$1" ]; then

echo "ROS MASRER $1"

export ROS_MASTER_URI=http://$1:11311

else

echo "ROS MASRER 127.0.0.1"

export ROS_MASTER_URI=http://127.0.0.1:11311

fi



if [ "$2" ]; then

echo "ROS IP $2"

export ROS_IP=$2

else

echo "ROS IP 127.0.0.1"

export ROS_IP=127.0.0.1

fi

#source ROS/catkin_ws/devel/setup.bash
#source ROS/catkin_ws/devel_isolated/setup.bash
source ~/WFH_locobot/set_rospackage_path.sh
Expand Down
Binary file removed locobot/teleoperation.pyc
Binary file not shown.
31 changes: 30 additions & 1 deletion locobot/top_camera.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,36 @@
#!/bin/bash

if [ "$1" ]; then

echo "ROS MASRER $1"

export ROS_MASTER_URI=http://$1:11311

else

echo "ROS MASRER 127.0.0.1"

export ROS_MASTER_URI=http://127.0.0.1:11311

fi



if [ "$2" ]; then

echo "ROS IP $2"

export ROS_IP=$2

else

echo "ROS IP 127.0.0.1"

export ROS_IP=127.0.0.1

fi

source ~/WFH_locobot/environment.sh
source ~/WFH_locobot/set_ip.sh $1 $2
rosservice call /calibration
#rostopic pub /tilt/command std_msgs/Float64 "data: 0.8"
#rostopic pub /pan/command std_msgs/Float64 "data: 0.0"
Expand Down
31 changes: 30 additions & 1 deletion locobot/turn_on_locobot.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,33 @@
#! /bin/bash
if [ "$1" ]; then

echo "ROS MASRER $1"

export ROS_MASTER_URI=http://$1:11311

else

echo "ROS MASRER 127.0.0.1"

export ROS_MASTER_URI=http://127.0.0.1:11311

fi



if [ "$2" ]; then

echo "ROS IP $2"

export ROS_IP=$2

else

echo "ROS IP 127.0.0.1"

export ROS_IP=127.0.0.1

fi

source ~/WFH_locobot/environment.sh
source ~/WFH_locobot/set_ip.sh $1 $2
source ~/WFH_locobot/run_locobot.sh
32 changes: 31 additions & 1 deletion locobot/vr_arm_control.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,37 @@
cd ~/WFH_locobot
source ~/WFH_locobot/set_wfh_workspace_env.sh

source ~/WFH_locobot/set_ip.sh $1 $2
if [ "$1" ]; then

echo "ROS MASRER $1"

export ROS_MASTER_URI=http://$1:11311

else

echo "ROS MASRER 127.0.0.1"

export ROS_MASTER_URI=http://127.0.0.1:11311

fi



if [ "$2" ]; then

echo "ROS IP $2"

export ROS_IP=$2

else

echo "ROS IP 127.0.0.1"

export ROS_IP=127.0.0.1

fi



rosrun oculusVR vrarm.py

Expand Down
10 changes: 10 additions & 0 deletions low_cost_ws/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# ROS to Run on Host Laptop/PC

## Build the Project

```
cd ~/low_cost_ws
catkin_make
```

## Run
1 change: 1 addition & 0 deletions low_cost_ws/src/apriltags_ros
Submodule apriltags_ros added at ff305d
1 change: 1 addition & 0 deletions low_cost_ws/src/apriltags_ros_test
Submodule apriltags_ros_test added at 629f63
1 change: 1 addition & 0 deletions low_cost_ws/src/arg_utils
Submodule arg_utils added at 6a6790
Loading