
Custom Robot URDF with Moveit2
使用solidworks URDF exporter.
需要注意不要使用
lock constrain限制零件位置。
https://moveit.picknik.ai/main/doc/examples/examples.html#integration-with-a-new-robot
首先克隆moveit2的示例仓库:
1 | git clone -b humble https://github.com/moveit/moveit2_tutorials |
编译项目colcon build,启动setup assistant:
1 | ros2 launch moveit_setup_assistant setup_assistant.launch.py |
随后按照教程配置SRDF。
配置完成后可以启动示例代码:
1 | ros2 launch panda_moveit_config demo.launch.py |
会将机械臂可视化并且拖动目标位置之后可以plan&execute。
File Path: catkin_ws/src/test/script/env_pkl_generator.py
1 | cd ~ |
It will open Gazebo and RViz and display the robotic arm on both sofware.
1 | cd ~ |
向日葵
识别吗
341 866 266
ge6v9Q
Study note for ROS subscriber.
How to realize a subscriber
Also we put this node into function package learning_topic
Create velocity_publisher.cpp file in learning_topic/src:
1 |
|
Note
Steps same as publisher
Add two lines to learning\_topic/CMakeLists.txt (in build part):
1 | add_executable(velocity_publisher src/pose_subscriber.cpp) |
1 | $ cd ~/ROS_study/catkin_ws |
The output of pose_subscriber:
1 | ... |
Study note for ROS publisher.
Take turtlesim as the example.
We write a program acting like a publisher and sending controlling messages.
1 | $ cd catkin_ws/src |
can see:
1 | $ ls |
How to realize a publisher?
create velocity_publisher.cpp file in learning_topic/src
1 |
|
What is queue length?
Steps:
Add two lines to learning\_topic/CMakeLists.txt (in build part):
1 | add_executable(velocity_publisher src/velocity_publisher.cpp) |
1 | $ cd ~/ROS_study/catkin_ws |
Then, you can see turtle:
And outputs:
1 | ... |
1 | Study note for ROS |