forked from UbiquityRobotics/magni_robot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from UbiquityRobotics/indigo-devel
Take updates from original Ubiquity repo
- Loading branch information
Showing
18 changed files
with
1,324 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
analyzers: | ||
Raspicam: | ||
type: GenericAnalyzer | ||
path: Motors | ||
startswith: 'motor_node:' | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<robot xmlns:xacro="http://wiki.ros.org/xacro"> | ||
|
||
<xacro:macro name="raspi_camera" params="name:='' connected_to:='' *origin"> | ||
|
||
<xacro:unless value="${connected_to == ''}"> | ||
<joint name="${name}_joint" type="fixed"> | ||
<parent link="${connected_to}"/> | ||
<child link="${name}"/> | ||
<xacro:insert_block name="origin"/> | ||
</joint> | ||
</xacro:unless> | ||
|
||
<link name="${name}"> | ||
<visual> | ||
<origin xyz="0 0 0" rpy="${pi/2} 0 0" /> | ||
<geometry> | ||
<mesh filename="package://magni_description/meshes/sensors/raspi_camera.dae" /> | ||
</geometry> | ||
</visual> | ||
<collision> | ||
<origin xyz="0 0 0" rpy="0 0 ${pi/2}" /> | ||
<geometry> | ||
<box size="0.03 0.026 0.016"/> | ||
</geometry> | ||
</collision> | ||
</link> | ||
|
||
<!-- Additional link for camera sensor to orient camera direction --> | ||
<link name="${name}_sensor"/> | ||
<joint name="${name}_sensor_joint" type="fixed"> | ||
<parent link="${name}"/> | ||
<child link="${name}_sensor"/> | ||
<origin xyz="0 0 0.012" rpy="${pi/2} ${-pi/2} 0" /> | ||
</joint> | ||
|
||
<!-- Gazebo sensor plugin --> | ||
<gazebo reference="${name}_sensor"> | ||
<sensor type="camera" name="camera1"> | ||
<visualize>false</visualize> | ||
<update_rate>30.0</update_rate> | ||
<camera name="raspi_camera"> | ||
<horizontal_fov>1.086</horizontal_fov> | ||
<image> | ||
<width>640</width> | ||
<height>480</height> | ||
<format>R8G8B8</format> | ||
</image> | ||
<clip> | ||
<near>0.02</near> | ||
<far>300</far> | ||
</clip> | ||
</camera> | ||
<!-- Gazebo-ROS interface plugin --> | ||
<plugin name="camera_controller" filename="libgazebo_ros_camera.so"> | ||
<alwaysOn>true</alwaysOn> | ||
<updateRate>0.0</updateRate> | ||
<cameraName>${name}</cameraName> | ||
<imageTopicName>/${name}_node/image/compressed</imageTopicName> | ||
<cameraInfoTopicName>/${name}_node/camera_info</cameraInfoTopicName> | ||
<frameName>${name}</frameName> | ||
<hackBaseline>0.07</hackBaseline> | ||
<distortionK1>0.0</distortionK1> | ||
<distortionK2>0.0</distortionK2> | ||
<distortionK3>0.0</distortionK3> | ||
<distortionT1>0.0</distortionT1> | ||
<distortionT2>0.0</distortionT2> | ||
</plugin> | ||
</sensor> | ||
</gazebo> | ||
|
||
|
||
|
||
</xacro:macro> | ||
|
||
</robot> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<robot xmlns:xacro="http://wiki.ros.org/xacro"> | ||
|
||
<xacro:macro name="sonar_hc-sr04" params="name:='' connected_to:='' *origin"> | ||
|
||
<xacro:unless value="${connected_to == ''}"> | ||
<joint name="${name}_joint" type="fixed"> | ||
<parent link="${connected_to}"/> | ||
<child link="${name}"/> | ||
<xacro:insert_block name="origin"/> | ||
</joint> | ||
</xacro:unless> | ||
|
||
<link name="${name}"> | ||
<visual> | ||
<origin xyz="-0.006 0 0" rpy="${pi/2} 0 ${pi/2}" /> | ||
<geometry> | ||
<mesh filename="package://magni_description/meshes/sensors/sonar_hc-sr04.dae" /> | ||
</geometry> | ||
</visual> | ||
<collision> | ||
<origin xyz="0 0 0" rpy="0 0 0" /> | ||
<geometry> | ||
<box size="0.02 0.044 0.021"/> | ||
</geometry> | ||
</collision> | ||
</link> | ||
|
||
|
||
<!-- Gazebo sensor plugin --> | ||
<gazebo reference="${name}"> | ||
<sensor type="ray" name="${name}_sensor"> | ||
<visualize>false</visualize> | ||
<update_rate>5</update_rate> | ||
<ray> | ||
<scan> | ||
<horizontal> | ||
<samples>5</samples> | ||
<resolution>1.0</resolution> | ||
<min_angle>-0.24</min_angle> | ||
<max_angle>0.24</max_angle> | ||
</horizontal> | ||
<vertical> | ||
<samples>5</samples> | ||
<resolution>1.0</resolution> | ||
<min_angle>-0.24</min_angle> | ||
<max_angle>0.24</max_angle> | ||
</vertical> | ||
</scan> | ||
<range> | ||
<min>0.02</min> | ||
<max>3.2</max> | ||
<resolution>0.01</resolution> | ||
</range> | ||
</ray> | ||
<!-- Gazebo-ROS interface plugin --> | ||
<plugin filename="libgazebo_ros_range.so" name="gazebo_ros_range"> | ||
<gaussianNoise>0.015</gaussianNoise> | ||
<alwaysOn>true</alwaysOn> | ||
<updateRate>5</updateRate> | ||
<topicName>/ubiquity_sonar/${name}</topicName> | ||
<frameName>${name}</frameName> | ||
<fov>0.5</fov> | ||
<radiation>ultrasound</radiation> | ||
</plugin> | ||
</sensor> | ||
</gazebo> | ||
|
||
|
||
</xacro:macro> | ||
|
||
</robot> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
cmake_minimum_required(VERSION 2.8.3) | ||
project(magni_desktop) | ||
find_package(catkin REQUIRED) | ||
catkin_metapackage() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# magni_desktop | ||
|
||
This is a metapackage that has everything needed for a workstation to control magni. | ||
|
||
Install with `sudo apt install ros-kinetic-magni-desktop`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0"?> | ||
<package format="2"> | ||
<name>magni_desktop</name> | ||
<version>0.4.3</version> | ||
<description>Meta package for all the desktop side utilities for magni</description> | ||
|
||
<maintainer email="send2arohan@gmail.com">Rohan Agrawal</maintainer> | ||
<license>BSD</license> | ||
|
||
<buildtool_depend>catkin</buildtool_depend> | ||
<exec_depend>magni_description</exec_depend> | ||
<exec_depend>magni_teleop</exec_depend> | ||
<exec_depend>magni_gazebo</exec_depend> | ||
<exec_depend>magni_viz</exec_depend> | ||
|
||
<!-- The export tag contains other, unspecified, tags --> | ||
<export> | ||
<!-- Other tools can request additional information be placed here --> | ||
<metapackage /> | ||
</export> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.