Skip to content

Comments

feat: Bridge twist message to set_velocity API for high level movement#17

Open
MiaoDX wants to merge 1 commit intounitreerobotics:masterfrom
MiaoDX-fork-and-pruning:dongxu/refactor/twist_msg
Open

feat: Bridge twist message to set_velocity API for high level movement#17
MiaoDX wants to merge 1 commit intounitreerobotics:masterfrom
MiaoDX-fork-and-pruning:dongxu/refactor/twist_msg

Conversation

@MiaoDX
Copy link

@MiaoDX MiaoDX commented Oct 14, 2025

Hi, thanks for the ROS2 wrapper.

It maybe helpful it we can support twist message directly.

And my limited testing show that our current BaseClient can be not so suitable for calling multi times.

With all the changes:


Testing:

# In terminal 1, launch the bridge
./install/unitree_ros2_example/bin/g1_twist_bridge --ros-args -p velocity_duration:=0.5 -p velocity_update_period_ms:=200

# In terminal 2, give the twist msg
ros2 topic pub /cmd_vel geometry_msgs/msg/Twist "{linear: {x: 0.15, y: 0.0}, angular: {z: 0.0}}" -r 5
# Ctrl-C to stop move

Sincerely,
MiaoDX

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant