Skip to content

how can move the robot using the keyboard #1

@downloadproject

Description

@downloadproject

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions