RoPod/Tutorials/Commands cheat sheet: Difference between revisions

From Control Systems Technology Group
Jump to navigation Jump to search
No edit summary
No edit summary
Line 58: Line 58:
|-
|-
|}
|}
In order to create some data which you can play back, you can create a ROS bag-file. You can take a look at the "Recording data"-paragraph [[ Embedded_Motion_Control/Using_Pico | this page of the EMC course]].

Revision as of 15:51, 6 October 2017

Alias Command Purpose
buildit
cd $CATKIN_WORKSPACE; catkin_make
Build all packages in your catkin workspace
clean_build
   cd $CATKIN_WORKSPACE;
   rm -rf build/ devel/;
   cd $CATKIN_WORKSPACE/src/; 
   rm CMakelists.txt; 
   cd $CATKIN_WORKSPACE; 
   catkin_make;" 
Remove previous build and rebuild catkin workspace.
pico-core
 export ROS_MASTER_URI=http://192.168.44.81:11311
Tell that the ROS master is at Pico via the wireless connection.
pico-core-wired
 export ROS_MASTER_URI=http://10.0.0.2:11311
Tell that the ROS master is at Pico via the wired connection.
pico-wired
  export ROS_MASTER_URI=http://10.0.0.2:11311;
  export ROS_IP=10.0.0.2;
  export WIRED_CONNECTION=true
Set the relevant ROS parameters to the wireless communication via the ropod-router
pico-wireless
  export ROS_MASTER_URI=http://192.168.44.81:11311;
  export ROS_IP=192.168.44.81;
  export WIRED_CONNECTION=false;
Set the relevant ROS parameters to the wireless communication via the ropod-router
pstart
roslaunch pico_bringup start.launch
Start all the communication with the hardware on pico
sshpico
ssh ropod@192.168.44.81
ssh to Pico via the wireless network
sshpico-wired
ssh ropod@10.0.0.2
ssh to Pico via the wired network
teleop <<robotname>>
rosrun robot_common teleop.py <<robotname>> 
Use your keyboard to navigate with the robot

In order to create some data which you can play back, you can create a ROS bag-file. You can take a look at the "Recording data"-paragraph this page of the EMC course.