본문 바로가기
728x90
반응형
SMALL

Ros 공부15

ROS 2 Topic 프로그래밍(Python), 토픽 Publisher Node Topic Publisher Noderos2_ws/src 디렉터리에 publisher_pkg라는 이름의새 패키지를 만들고 토픽 작업에 필요한 종속성을 추가합니다.ros2 pkg create --build-type ament_python publisher_pkg --dependencies rclpy std_msgs geometry_msgs마지막으로 추가된 두 가지 종속성인 std_msgs와 geometry_msgs는 패키지에서 새로 만들 노드에 사용할 인터페이스 입니다.방금 생성한 패키지의 publisher_pkg 디렉터리에 simple_publisher.py라는 새 파일을 생성합니다.방금 만든 파일에 다음 코드를 복사합니다.import rclpy# import the ROS2 python librarie.. 2025. 3. 6.
[with T = gazebo::rendering::Camera; typename boost::detail::sp_member_access<T>::type = gazebo::rendering::Camera*]: Assertion `px != 0' failed. 위 문제는 Gazebo의 환경변수 설정이 되지 않아 발생할 수 있습니다.먼저 다음 명령으로 Gazebo의 패키지를 업데이트 해 주세요.sudo apt updatesudo apt upgrade ros-humble-gazebo*그 다음 새 터미널을 열 때 마다 환경변수를 설정하는 쉘 스크립트를 불러올 수 있도록다음 명령으로 ~/.bashrc 파일을 업데이트 해 주세요. echo 'source /usr/share/gazebo/setup.sh' >> ~/.bashrcecho 'source /usr/share/gazebo-11/setup.sh' >> ~/.bashrcsource ~/.bashrc 2025. 2. 24.
ROS 2 Humble 설치(Ubuntu 22.04) Ubuntu 22.04 설치 완료 후 아래 명령어 한 줄 씩 입력.Add the ROS2 apt repositorysudo apt install software-properties-commonsudo add-apt-repository universesudo apt update && sudo apt install curlsudo curl -sSL -o /usr/share/keyrings/ros-archive-keyring.gpgecho "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] $(. /etc/os-release && echo $UBUNTU_CODENAME) main" | su.. 2025. 2. 24.
MongoDB install Moveit의 경로 저장을 사용하려면 DB가 있어야 한다. MongoDB를 이용해보자 https://ros-planning.github.io/moveit_tutorials/doc/persistent_scenes_and_states/persistent_scenes_and_states.html MoveIt 홈페이지에서 warehouse_ros_mongo를 따라가보면 먼저 mongo c++ drivers를 다운받으라고 한다. https://github.com/mongodb/mongo-c-driver/releases Releases · mongodb/mongo-c-driver The Official MongoDB driver for C language. Contribute to mongodb/mongo-c-dr.. 2023. 3. 14.
Manipulator_H →Manipulator_P 나는 처음에 H를 사용하려고 H에 맞는 패키지들을 설치해주었다. $ cd ~/catkin_ws/src/ $ git clone https://github.com/ROBOTIS-GIT/DynamixelSDK.git $ git clone https://github.com/ROBOTIS-GIT/ROBOTIS-Framework.git $ git clone https://github.com/ROBOTIS-GIT/ROBOTIS-Framework-msgs.git $ git clone https://github.com/ROBOTIS-GIT/ROBOTIS-MANIPULATOR-H.git $ git clone https://github.com/ROBOTIS-GIT/ROBOTIS-Math.git $ cd ~/catkin_ws.. 2023. 3. 12.
OpenManipulator-X $ source ~/.bashrc $ sudo apt-get install ros-noetic-ros-controllers ros-noetic-gazebo* ros-noetic-moveit* ros-noetic-industrial-core $ sudo apt install ros-noetic-dynamixel-sdk ros-noetic-dynamixel-workbench* $ sudo apt install ros-noetic-robotis-manipulator OpenManipulator-X 를 사용하기 위해 종속패키지를 설치 한 후 $ cd ~/catkin_ws/src/ $ git clone -b noetic-devel https://github.com/ROBOTIS-GIT/open_manipulato.. 2023. 3. 12.
728x90
반응형
LIST