ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

Is teleop_twist_keyboard launchable in ROS2? [closed]

asked 2019-11-18 11:50:27 -0500

relffok gravatar image

Hi, fairly new to ROS2 I am currently trying to work with launch files. I was trying to simply launch the teleop_twist_keyboard but it would't work.

    launch_ros.actions.Node(
        package="teleop_twist_keyboard",
        node_executable="teleop_twist_keyboard",
        output='screen',
        node_name='teleop')

I don't get an error message, and the topic node connections in rqt look right too. Although I don't the usual console output (telling me which keys I should use). Is this package launchable yet? What can I do?

I am working with dashing. Thanks!

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by relffok
close date 2021-09-30 06:39:57.481812

Comments

have you tried running the launch command with the -d option for more debug output?

mlanting gravatar image mlanting  ( 2019-11-27 10:37:44 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
2

answered 2020-01-16 12:37:33 -0500

relffok gravatar image

Update: After adding the prefix 'xterm -e' to launch in a new terminal everything worked as it should.

launch_ros.actions.Node(
    package='teleop_twist_keyboard',
    node_executable="teleop_twist_keyboard",
    output='screen',
    prefix = 'xterm -e',
    node_name='teleop')
edit flag offensive delete link more

Comments

1

I feel this has a work around ! Does anyone have an idea on how to do it without xterm -e?

pmuthu2s gravatar image pmuthu2s  ( 2021-02-10 12:47:19 -0500 )edit

I'd also like to know, how to run this teleop node without using 'xterm'?

KimJensen gravatar image KimJensen  ( 2021-10-11 00:53:12 -0500 )edit

As is stated here, then I do not believe it is possible to do it without using 'xterm': ros2/teleop_twist_keyboard/issues

KimJensen gravatar image KimJensen  ( 2021-10-11 01:11:25 -0500 )edit
1

answered 2021-09-13 19:50:56 -0500

eldeivid gravatar image

For the record, in an xml launch file, it would look like this:

  <node pkg="teleop_twist_keyboard" exec="teleop_twist_keyboard" name="teleop" output="screen" launch-prefix="xterm -e" />

This solution requires having the xterm package installed.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2019-11-18 11:50:27 -0500

Seen: 1,758 times

Last updated: Jan 16 '20