-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
teleoperate the robot #540
Comments
Hello! There is a |
in addition, this PR i believe has some work to send velocity commands to the arm in a similar way to cmd_vel, could be a useful reference |
Thank you both for your responses. I tried publishing to cmd_vel, but it doesn’t actually move the robot. I launched the driver using the command: Additionally, the robot I have is equipped with an arm, so cmd_vel doesn’t control the arm. Regarding ros2_control, I noticed it doesn’t include collision avoidance which is why I was trying to teleop using the SDK. I believe the PR you mentioned is exactly what I need. Thank you so much! I’ll look into incorporating it. |
the |
I have the Spot login data hostname, username, and password specified as environment variables. When I run ros2 launch spot_driver spot_driver.launch.py and I can see the services and topics. I am using the ROS CLI to publish commands to the /cmd_vel topic with ros2 topic pub /cmd_vel. I tested with different values for the geometry_msgs/Twist message. The robot seems like it is about to move, and I can hear the motors attempting to engage, but it ultimately does not move. |
@olaghattas hmm, I am testing this on robot and experiencing the same issue. Looking into this more |
@olaghattas I think what is going on has to do with the tldr: launch the driver with |
@khughes-bdai, I tried that today, and the issue turned out to be the frequency at which cmd_vel was being published (5 Hz). After increasing it to 10 Hz, it worked. Btw the default YAML file sets cmd_duration to 0.25. Thank you both for your help! I can now close the issue. The cmd_vel is working, and I will use the PR for the teleop setup. |
Hello,
I am trying to write a ROS node that allows me to teleoperate Spot's arm. In the spot-sdk, there is an arm_wasd.py example file that uses the ArmVelocityCommand API to send end-effector velocity commands. However, I cannot find an equivalent interface in this spot_ros2 package.
Here’s what I’ve tried so far:
Could you please guide me on how to achieve arm teleoperation with spot_ros2? Any examples or documentation would be greatly appreciated.
For reference, here is the link to the arm_wasd.py file in the spot-sdk: https://github.com/boston-dynamics/spot-sdk/blob/master/python/examples/arm_wasd/arm_wasd.py
Thank you for your help!
The text was updated successfully, but these errors were encountered: