Skip to content

cananella/mycobot320_moveit2

Repository files navigation

mycobot320_moveit2

ubuntu 22.04

ros2 humble

need to test first

binary install : for learning moveit

Source build : for creat packages

## make ros2 workspace
mkdir -p ~/[ros2 workspace dir]/src
sudo apt remove ros-$ROS_DISTRO-moveit*

## git moveit2
cd ~/[ros2 workspace dir]/src
git clone -b humble https://github.com/ros-planning/moveit2_tutorials.git
git clone -b humble https://github.com/ros-planning/moveit2.git
vcs import < moveit2_tutorials/moveit2_tutorials.repos
for repo in moveit2/moveit2.repos $(f="moveit2/moveit2_$ROS_DISTRO.repos"; test -r $f && echo $f); do vcs import < "$repo"; done
rosdep install -r --from-paths . --ignore-src --rosdistro $ROS_DISTRO -y


## colcon build
cd ~/[ros2 workspace dir]
colcon build --event-handlers desktop_notification- status- --cmake-args -DCMAKE_BUILD_TYPE=Release
 ## if build dead, add  --parallel-workers 1



git clone & build

cd ~/[ros2 workspace dir]/src
git clone https://github.com/cananella/mycobot320_moveit2.git
cp -r mycobot320_moveit2/* ./
rm -rf mycobot320_moveit2 README.md
cd ..
colcon build --packages-select mycobot_moveit mycobot_with_gripper mycobot_ros2_controll hello_moveit

rviz2 moveit control

ros2 launch mycobot_moveit demo.launch.py

스크린샷 2024-04-15 14-39-02

whit gripper

ros2 launch mycobot_with_gripper demo.launch.py

스크린샷 2024-04-16 17-17-56

if error occurs [ERROR] [launch]: Caught exception in launch (see debug for traceback): 'capabilities'

~/[ros2 workspace dir]/src/moveit2/moveit_configs_utils/moveit_configs_utils/launches.py line:203
change: default_value=moveit_config.move_group_capabilities["capabilities"],
-> default_value=moveit_config.move_group_capabilities,

mycobot grip test

mycobot device permission assignment

sudo chmod +777 /dev/ttyACM0 

launch mycobot controllor

ros2 launch mycobot_ros2_controll rviz_controll.launch.py

run camera service node

ros2 run mycobot_ros2_controll detect_cube_server True

run grip test

ros2 run mycobot_ros2_cpp_cnt grip_test 

Video

Video Label Video Label

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published