Skip to content

Instantly share code, notes, and snippets.

@tngan
Last active March 23, 2016 09:53
Show Gist options
  • Save tngan/e5362615d01fb6550c35 to your computer and use it in GitHub Desktop.
Save tngan/e5362615d01fb6550c35 to your computer and use it in GitHub Desktop.
Useful ros command

Launch the environment

roslaunch hector_quadrotor_demo outdoor_flight_gazebo.launch

Mount the joystick

roslaunch hector_quadrotor_teleop logitech_gamepad.launch

Configure the joystick

roscd hector_quadrotor_teleop/launch

  • Changing the configure file and save

roslaunch hector_quadotor_teleop xbox_controller.launch

Get the depth camera works in real world

sudo apt-get install ros-indigo-openni2*

sudo apt-get install ros-indigo-ar-track-alvar

roslaunch openni2_launch openni2.launch

roscd ar_track_alvar/launch/

sudo vi pr2_indiv.lanuch

  • Change the topic name under /camera roslaunch ar_track_alvar pr2_indiv.launch

  • Use the follow command to open rviz rosrun rviz rviz

  • Add different components (e.g. camera, depth)

Setup a master roscore to do work

  • Edit etc/hosts and update the corresponding ip and hostname of master
  • Change the master uri using export ROS_MASTER_URI=http://hostname:port
  • Check the topic list rostopic list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment