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

how can move the robot using the keyboard #1

Open
downloadproject opened this issue Dec 11, 2024 · 0 comments
Open

how can move the robot using the keyboard #1

downloadproject opened this issue Dec 11, 2024 · 0 comments

Comments

@downloadproject
Copy link

https://gazebosim.org/docs/harmonic/moving_robot/
This webpage tells me how to use the keyboard to control the robot's movement. But when I used this code in your project, the robot stopped displaying. Where should I add this code?

    <plugin filename="gz-sim-triggered-publisher-system"
            name="gz::sim::systems::TriggeredPublisher">
        <input type="gz.msgs.Int32" topic="/keyboard/keypress">
            <match field="data">16777234</match>
        </input>
        <output type="gz.msgs.Twist" topic="/cmd_vel">
            linear: {x: 0.0}, angular: {z: 0.5}
        </output>
    </plugin>
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