Skip to content
This repository was archived by the owner on May 11, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 19 additions & 21 deletions prius/prius_description/urdf/prius.urdf
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,6 @@

<gazebo>
<plugin name="joint_state_publisher" filename="libgazebo_ros_joint_state_publisher.so">
<!-- <robotNamespace>/prius</robotNamespace> -->
<jointName>rear_right_wheel_joint, rear_left_wheel_joint, front_right_wheel_joint, front_left_wheel_joint, front_right_steer_joint, front_left_steer_joint, steering_joint</jointName>
<updateRate>100.0</updateRate>
<alwaysOn>true</alwaysOn>
Expand All @@ -489,7 +488,6 @@

<gazebo>
<plugin name="p3d" filename="libgazebo_ros_p3d.so">
<!-- <robotNamespace>/prius</robotNamespace> -->
<bodyName>base_link</bodyName>
<topicName>base_pose_ground_truth</topicName>
<frameName>map</frameName>
Expand Down Expand Up @@ -520,7 +518,7 @@
</range>
</ray>
<plugin name='center_laser' filename='libgazebo_ros_block_laser.so'>
<topicName>/prius/center_laser/scan</topicName>
<topicName>center_laser/scan</topicName>
<frameName>center_laser_link</frameName>
</plugin>
<always_on>1</always_on>
Expand Down Expand Up @@ -552,7 +550,7 @@
</range>
</ray>
<plugin name='front_left_laser' filename='libgazebo_ros_laser.so'>
<topicName>/prius/front_left_laser/scan</topicName>
<topicName>front_left_laser/scan</topicName>
<frameName>front_left_laser_link</frameName>
</plugin>
<always_on>1</always_on>
Expand Down Expand Up @@ -584,7 +582,7 @@
</range>
</ray>
<plugin name='front_right_laser' filename='libgazebo_ros_laser.so'>
<topicName>/prius/front_right_laser/scan</topicName>
<topicName>front_right_laser/scan</topicName>
<frameName>front_right_laser_link</frameName>
</plugin>
<always_on>1</always_on>
Expand Down Expand Up @@ -616,9 +614,9 @@
<plugin name="front_camera_controller" filename="libgazebo_ros_camera.so">
<alwaysOn>false</alwaysOn>
<updateRate>0.0</updateRate>
<cameraName>/prius/front_camera</cameraName>
<cameraName>front_camera</cameraName>
<imageTopicName>image_raw</imageTopicName>
<cameraInfoTopicName>/prius/front_camera_info</cameraInfoTopicName>
<cameraInfoTopicName>front_camera_info</cameraInfoTopicName>
<frameName>camera_link</frameName>
<hackBaseline>0.07</hackBaseline>
<distortionK1>0.0</distortionK1>
Expand Down Expand Up @@ -653,9 +651,9 @@
<plugin name="back_camera_controller" filename="libgazebo_ros_camera.so">
<alwaysOn>false</alwaysOn>
<updateRate>0.0</updateRate>
<cameraName>/prius/back_camera</cameraName>
<cameraName>/back_camera</cameraName>
<imageTopicName>image_raw</imageTopicName>
<cameraInfoTopicName>/prius/back_camera_info</cameraInfoTopicName>
<cameraInfoTopicName>/back_camera_info</cameraInfoTopicName>
<frameName>camera_link</frameName>
<hackBaseline>0.07</hackBaseline>
<distortionK1>0.0</distortionK1>
Expand Down Expand Up @@ -690,9 +688,9 @@
<plugin name="left_camera_controller" filename="libgazebo_ros_camera.so">
<alwaysOn>false</alwaysOn>
<updateRate>0.0</updateRate>
<cameraName>/prius/left_camera</cameraName>
<cameraName>/left_camera</cameraName>
<imageTopicName>image_raw</imageTopicName>
<cameraInfoTopicName>/prius/left_camera_info</cameraInfoTopicName>
<cameraInfoTopicName>/left_camera_info</cameraInfoTopicName>
<frameName>camera_link</frameName>
<hackBaseline>0.07</hackBaseline>
<distortionK1>0.0</distortionK1>
Expand Down Expand Up @@ -727,9 +725,9 @@
<plugin name="right_camera_controller" filename="libgazebo_ros_camera.so">
<alwaysOn>false</alwaysOn>
<updateRate>0.0</updateRate>
<cameraName>/prius/right_camera</cameraName>
<cameraName>right_camera</cameraName>
<imageTopicName>image_raw</imageTopicName>
<cameraInfoTopicName>/prius/right_camera_info</cameraInfoTopicName>
<cameraInfoTopicName>right_camera_info</cameraInfoTopicName>
<frameName>camera_link</frameName>
<hackBaseline>0.07</hackBaseline>
<distortionK1>0.0</distortionK1>
Expand Down Expand Up @@ -765,7 +763,7 @@
</range>
</ray>
<plugin name='back_left_far_sonar_sensor' filename='libgazebo_ros_range.so'>
<topicName>/prius/back_sonar/left_far_range</topicName>
<topicName>back_sonar/left_far_range</topicName>
<frameName>back_left_far_sonar_link</frameName>
</plugin>
<always_on>false</always_on>
Expand Down Expand Up @@ -797,7 +795,7 @@
</range>
</ray>
<plugin name='back_left_middle_sonar_sensor' filename='libgazebo_ros_range.so'>
<topicName>/prius/back_sonar/left_middle_range</topicName>
<topicName>back_sonar/left_middle_range</topicName>
<frameName>back_left_middle_sonar_link</frameName>
</plugin>
<always_on>false</always_on>
Expand Down Expand Up @@ -829,7 +827,7 @@
</range>
</ray>
<plugin name='back_right_far_sonar_sensor' filename='libgazebo_ros_range.so'>
<topicName>/prius/back_sonar/right_far_range</topicName>
<topicName>back_sonar/right_far_range</topicName>
<frameName>back_right_far_sonar_link</frameName>
</plugin>
<always_on>false</always_on>
Expand Down Expand Up @@ -861,7 +859,7 @@
</range>
</ray>
<plugin name='back_right_middle_sonar_sensor' filename='libgazebo_ros_range.so'>
<topicName>/prius/back_sonar/right_middle_range</topicName>
<topicName>back_sonar/right_middle_range</topicName>
<frameName>back_right_middle_sonar_link</frameName>
</plugin>
<always_on>false</always_on>
Expand Down Expand Up @@ -893,7 +891,7 @@
</range>
</ray>
<plugin name='front_left_far_sonar_sensor' filename='libgazebo_ros_range.so'>
<topicName>/prius/front_sonar/left_far_range</topicName>
<topicName>front_sonar/left_far_range</topicName>
<frameName>front_left_far_sonar_link</frameName>
</plugin>
<always_on>false</always_on>
Expand Down Expand Up @@ -925,7 +923,7 @@
</range>
</ray>
<plugin name='front_left_middle_sonar_sensor' filename='libgazebo_ros_range.so'>
<topicName>/prius/front_sonar/left_middle_range</topicName>
<topicName>front_sonar/left_middle_range</topicName>
<frameName>front_left_middle_sonar_link</frameName>
</plugin>
<always_on>false</always_on>
Expand Down Expand Up @@ -957,7 +955,7 @@
</range>
</ray>
<plugin name='front_right_far_sonar_sensor' filename='libgazebo_ros_range.so'>
<topicName>/prius/front_sonar/right_far_range</topicName>
<topicName>front_sonar/right_far_range</topicName>
<frameName>front_right_far_sonar_link</frameName>
</plugin>
<always_on>false</always_on>
Expand Down Expand Up @@ -989,7 +987,7 @@
</range>
</ray>
<plugin name='front_right_middle_sonar_sensor' filename='libgazebo_ros_range.so'>
<topicName>/prius/front_sonar/right_middle_range</topicName>
<topicName>front_sonar/right_middle_range</topicName>
<frameName>front_right_middle_sonar_link</frameName>
</plugin>
<always_on>false</always_on>
Expand Down
14 changes: 14 additions & 0 deletions prius/prius_gazebo/launch/prius.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0"?>
<launch>
<arg name="name" default="prius"/>
<arg name="pos_x" default="0.0"/>
<arg name="pos_y" default="0.0"/>
<arg name="pos_z" default="0.0"/>
<arg name="r" default="0.0"/>
<arg name="p" default="0.0"/>
<arg name="y" default="0.0"/>
<arg name="model" default="$(find prius_description)/urdf/prius.urdf"/>
<param name="robot_description" textfile="$(arg model)"/>

<node name="spawn_urdf" pkg="gazebo_ros" type="spawn_model" args="-param robot_description -urdf -x $(arg pos_x) -y $(arg pos_y) -z $(arg pos_z) -R $(arg r) -P $(arg p) -Y $(arg y) -model $(arg name)"/>
</launch>
14 changes: 14 additions & 0 deletions prius/prius_gazebo/launch/prius_crossing.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0"?>
<launch>
<!-- Console launch prefix -->
<arg name="launch_prefix" default=""/>
<arg name="model" default="$(find prius_description)/urdf/prius.urdf"/>
<param name="robot_description" textfile="$(arg model)"/>

<include file="$(find gazebo_ros)/launch/empty_world.launch">
<arg name="verbose" value="true"/>
<arg name="world_name" value="$(find prius_gazebo)/worlds/prius_crossing.world"/>
</include>

<node name="spawn_urdf" pkg="gazebo_ros" type="spawn_model" args="-param robot_description -urdf -x 1.45 -y 25 -z 0 -R 0 -P 0 -Y -1.57 -model prius"/>
</launch>
33 changes: 33 additions & 0 deletions prius/prius_gazebo/launch/prius_overtake.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0"?>
<launch>

<include file="$(find gazebo_ros)/launch/empty_world.launch">
<arg name="verbose" value="true"/>
<arg name="world_name" value="$(find prius_gazebo)/worlds/prius_overtake.world"/>
</include>

<group ns="prius_simulate">
<include file="$(find prius_gazebo)/launch/prius.launch">
<arg name="name" value="prius1"/>
<arg name="pos_x" value="155"/>
<arg name="pos_y" value="-4.5"/>
<arg name="pos_z" value="0"/>
<arg name="r" value="0"/>
<arg name="p" value="0"/>
<arg name="y" value="-3.14"/>
</include>
</group>

<group ns="prius_overtake">
<include file="$(find prius_gazebo)/launch/prius.launch">
<arg name="name" value="prius2"/>
<arg name="pos_x" value="170"/>
<arg name="pos_y" value="-4.5"/>
<arg name="pos_z" value="0"/>
<arg name="r" value="0"/>
<arg name="p" value="0"/>
<arg name="y" value="-3.14"/>
</include>
</group>

</launch>
2 changes: 1 addition & 1 deletion prius/prius_gazebo/launch/prius_spawn.launch
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
<arg name="world_name" value="$(find prius_gazebo)/worlds/prius.world"/>
</include>

<node name="spawn_urdf" pkg="gazebo_ros" type="spawn_model" args="-param robot_description -urdf -x 3 -y -12 -z 0.5 -model prius"/>
<node name="spawn_urdf" pkg="gazebo_ros" type="spawn_model" args="-param robot_description -urdf -x 8.57 -y -15.5 -z 5.48 -Y 1.57 -model prius"/>
</launch>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading