This ROS2 eloquent workspace is created on Ubuntu 18.04. Here I have worked on some ros2 related projects.
This ROS2 eloquent workspace is created on Ubuntu 18.04. Here I have worked on some ros2 related projects.Note It is simple named catkin_ws however it is not build using catkin tool. Here we are using ament and colcon tools for building.
All the
code
required to get started
git clone https://github.com/iamrajee/ros2eloquent_catkin_ws.git
cd ros2eloquent_catkin_ws/
./refresh.sh
make
It is package about: testing!
It is package about: cpp pub sub
It is package about: python pub sub
It is package about: cpp service and client
It is package about: python service and client
It is package about: costum msg and srv, and testing with cpp pub&sub and srv&cli
It is package about: git clone https://github.com/ros/ros_tutorials.git -b eloquent-devel
It is package about: ros2 pkg create —build-type ament_cmake —node-name cpp_node testpkg_cmake
It is package about: ros2 pkg create —build-type ament_cmake testpkg_cmake
It is package about: ros2 pkg create —build-type ament_python —node-name py_node testpkg_python
It is package about: ros2 pkg create —build-type ament_python testpkg_python
It is package about: ros2 pkg create testpkg_simple
#!/bin/bash
source /opt/ros/eloquent/setup.bash
source install/local_setup.bash
source install/setup.bash
clear
It will source the workspace after buiding workspace or after creating new pkg. Run it as
./refresh.sh
SHELL=/bin/bash
all:
make run
run:
colcon build --symlink-install
bash refresh.sh
It will build the workspace . Run it as
make
#!/bin/bash
cd src/
ros2 pkg create $1 --build-type ament_cmake --node-name cpp_node
cd ../
#ls src/
make
source refresh.sh
It will create new package . Run it as
./createpkg.sh newpkg_name
#!/bin/bash
ros2 run rqt_tf_tree rqt_tf_tree
It will launch the gui to visvualise the tf tree. Run it as
./tftree.sh
#!/bin/bash
printenv | grep -i ROS
It will print the ROS related environment variable . Run it as
./printenv.sh
sudo rosdep install -i --from-path src --rosdistro $ROS_DISTRO -y
It will install dependencies of all pkg in the workspace. Run it in the workspace as
./rosdep.sh
#!/bin/bash
ssh rajendra@rajendra
It will ssh into another system. Useful when using multiple ros masters. Run it as
./rajendra.sh
Or Contributors/supporters/mentors/guides who helped me out in these projects.
| Abhinand A S | Sachin Rustagi | Swami Prasad |
| :—-: |:—-:| :—-:|
||
|
|
To get started…
Option 1
Option 2
https://github.com/iamrajee/ros2eloquent_catkin_ws.git
https://github.com/iamrajee/ros2eloquent_catkin_ws/compare/
.Reach out to me for any help!
| | |
| :—-: | —- |
| | Name : Rajendra Singh
Email : singh.raj1997@gmail.com
Web : https://iamrajee.github.io/
LinkedIn : https://www.linkedin.com/in/rajendra-singh-6b0b3a13a/
Twitter: @i_am_rajee
|
| | |