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

Irobot create commands

asked 2012-10-03 13:30:44 -0500

andreapatri gravatar image

updated 2014-01-28 17:13:50 -0500

ngrennan gravatar image

Hi! I created a file called irobot.sh. I would like to open 3 different consoles to run 3 different commands.

#!/bin/bash

konsole --hold -e "roscore"

konsole --hold -e "rosrun irobot_create_2_1 driver.py"

konsole --hold -e "rosrun teleop_twist_keyboard teleop_twist_keyboard.py"

Roscore is working fine, but the other 2 commands are not working. It opens the 3 consoles. But the two rosrun commands are no working, it shows this message:

Usage: rosrun PACKAGE EXECUTABLE [ARGS] rosrun will locate PACKAGE and try to find an executable named EXECUTABLE in the PACKAGE tree. If it finds it, it will run it with ARGS.

If I open 3 consoles by myself, and run one command in every console, everything works well, but I want to use the script.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-10-03 14:39:15 -0500

roslaunch probably does what you want. It is the preferred way for managing multiple nodes.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-10-03 13:30:44 -0500

Seen: 553 times

Last updated: Oct 03 '12