Skip to content
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

Is it possible to write WirelessController commands to G1 #25

Open
Rusteam opened this issue Dec 10, 2024 · 0 comments
Open

Is it possible to write WirelessController commands to G1 #25

Rusteam opened this issue Dec 10, 2024 · 0 comments

Comments

@Rusteam
Copy link

Rusteam commented Dec 10, 2024

I have adjusted WirelessController to G1, I can see that my code triggers ChannelSubscriber("rt/wirelesscontroller") but I don't see any action from the robot. My code is:

    ChannelFactoryInitialize(0, sys.argv[1])

    pub = ChannelPublisher("rt/wirelesscontroller", WirelessController_)
    pub.Init()
    smp = unitree_go_msg_dds__WirelessController_()

    smp.ly = 0.5
    for i in range(100):
        pub.Write(smp, timeout=1.0)
        time.sleep(0.01)

    smp.ly = 0
    pub.Write(smp)
    pub.Close()
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

No branches or pull requests

1 participant