[fetch_gazebo] Add option to launch teleop node#105
[fetch_gazebo] Add option to launch teleop node#105708yamaguchi wants to merge 1 commit intofetchrobotics:gazebo9from
Conversation
| <param name="lazy" type="bool" value="True"/> | ||
| </node> | ||
|
|
||
| <!-- Start a mux between application and teleop --> |
There was a problem hiding this comment.
I'm not particularly familiar with the use of mux'ing different command inputs; can you describe why this block is/should be removed? Thanks!
There was a problem hiding this comment.
Thank you for your review and sorry for my lack of explanation.
This mux node is actually not removed. This is included in teleop.launch.xml.
https://github.com/fetchrobotics/fetch_robots/blob/5fd6302bd17175c11d0ddfb4171f8513bc82a5b5/fetch_bringup/launch/include/teleop.launch.xml#L27-L29
hi~,I am trying to control the fetch with joystick in gazebo simulation. but it could not |
|
@treeofsun-god My environment is ROS melodic. mkdir ~/fetch_gazebo_teleop_ws/src/ -p
cd ~/fetch_gazebo_teleop_ws/src/
# Here, copy the following .rosinstall
wstool update
rosdep install --from-paths . --ignore-src -y -r
cd ..
source /opt/ros/melodic/setup.bash
catkin build
- git:
local-name: 708yamaguchi/fetch_gazebo
uri: https://github.com/708yamaguchi/fetch_gazebo.git
version: add-teleopThen, I executed source /opt/ros/melodic/setup.bash
source ~/fetch_gazebo_teleop_ws/devel/setup.bash
roslaunch fetch_gazebo playground.launch joy_device:="/dev/input/js0"When using this launch file, please make sure that
If joy teleop is succeeded, you can see the # Move forward
$ rostopic echo /joy
header:
seq: 467
stamp:
secs: 37
nsecs: 152000000
frame_id: ''
axes: [-0.0, -0.0, 0.0, 1.0, -0.0, 0.0]
buttons: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]
---Thanks, |
In this pull request, I add
launch_teleoparg tofetch.launch.xmllikefetch.launchinfetch_bringup.https://github.com/fetchrobotics/fetch_robots/blob/melodic-devel/fetch_bringup/launch/fetch.launch
This pull request allows us to operate the fetch in gazebo with joystick.
Example usage (with the joystick USB-connected):
roslaunch fetch_gazebo playground.launch joy_device:="/dev/input/js0"