-
Installation:
- Source your ROS version:
source /opt/ros/kinetic/setup.bash
- Create temporary catkin workspace or if you want to do in existing workspace, then skip this step:
mkdir -p ~/p3dx_ws/src
cd ~/p3dx_ws/ && catkin_make
source devel/setup.bash
- Download p3dx and teleop ros packages:
cd ~/p3dx_ws/src
git clone https://github.com/allenh1/p2os.git
git clone https://github.com/ros-teleop/teleop_twist_joy.git
cd ~/p3dx_ws && catkin_make -j6
- Source your ROS version:
-
Running p3dx:
- Plug the
p3dx connector
andxbox controller
to your laptop usb ports and turn on p3dx from the switch on the left. - Check usb device connection and make it executable:
ls /dev/ttyUSB* -l
sudo chmod 777 /dev/ttyUSB0
- Launch p3dx controller (Follow RosAria package instead of p2os_launch, as mentioned in section 5):
roslaunch p2os_launch p2os_teleop_joy.launch
- Now the p3dx starts making beeping sound so it is ready to control, now press the switch over
motors
, and then the green light overreset
switch would start blinking faster. - Launch
teleop node
to control p3dx:roslaunch teleop_twist_joy teleop.launch
- Plug the
-
Topics:
- You can control p3dx now with your
xbox controller
or publishing messages over/cmd_vel
topic. /cmd_vel
: Topic over which you can publish yourgeometry_msgs/Twist
messages./pose
: Odometry topic published by p3dx to locate it in the environment of message typenav_msgs/Odometry
.
- You can control p3dx now with your
-
Resources:
-
Running p3dx using RosAria instead of p2os:
- RosAria
rosrun rosaria RosAria
roslaunch teleop_twist_joy teleop.launch
# After remapping cmd_vel to RosAria/cmd_vel in teleop_twist_joy.cpp
-
Realsense launch:
roslaunch realsense2_camera rs_camera.launch align_depth:=true
Last active
February 23, 2024 13:27
-
-
Save UditSinghParihar/75a583f0128ba7a45c4da4099733f4f0 to your computer and use it in GitHub Desktop.
Commands to control p3dx robot
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment