Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[hector] Merge latest release into branch hector #28

Open
wants to merge 20 commits into
base: hector
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
56ee997
Include _plugins package in run dependency
paulbovbel Feb 25, 2015
448a1cd
Removes trailing spaces and fixes indents
yukota Apr 23, 2015
5754212
Merge pull request #15 from paulbovbel/patch-1
skohlbr Aug 20, 2015
a66579c
Remove geotiff plugins run dependency as it leads to build issues
skohlbr Aug 24, 2015
5f4f1d3
Update Readme to not contain obsolete instructions
skohlbr Oct 21, 2015
d528c0d
Merge branch 'RemoveTrailingSpace' of https://github.com/yukota/hecto…
Nov 7, 2015
2aa23c9
hector_imu_attitude_to_tf: fixed default values of the base_frame and…
Nov 7, 2015
cfa25bf
0.3.4
Nov 7, 2015
ee9cf41
hector_geotiff/hector_geotiff_plugins: added possibility to specify C…
Jul 17, 2015
68d59f4
hector_trajectory_server: removed bug leading to potential infinite loop
paulmanns Jul 20, 2015
1251d9d
Use the FindEigen3.cmake module provided by Eigen
meyerj Jun 24, 2016
40bd1b3
Changed from ros::WallTime to ros::Time in trajectory server
anlif Jun 1, 2015
39b075b
Merge branch 'anlif-catkin' into catkin
meyerj Jun 24, 2016
5717906
0.3.5
meyerj Jun 24, 2016
e39dd96
fix crash when dimension changes
randoms Jan 17, 2018
c6697de
Update map_to_image_node.cpp
randoms Jan 18, 2018
1f72acf
Added child_frame_id in hector mapping's odometry msg
davidbsp Feb 19, 2018
a5ac94b
Merge pull request #49 from davidbsp/catkin
meyerj Feb 19, 2018
d9e44fb
hector_map_tools: Use the FindEigen3.cmake module provided by Eigen
meyerj Jun 8, 2018
5abd5e1
Merge pull request #46 from randoms/patch-1
skohlbr Nov 1, 2019
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
16 changes: 2 additions & 14 deletions README.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
== Postprocessing Logfile example ==
Download this file:
http://code.google.com/p/tu-darmstadt-ros-pkg/downloads/detail?name=Team_Hector_MappingBox_RoboCup_2011_Rescue_Arena.bag&can=2&q=

Open a new terminal window, type:
rosmake hector_slam

Launch the tutorial launch file provided in the hector_slam_launch package:
roslaunch hector_slam_launch tutorial.launch

Open another terminal, enter the directory of the .bag file and type:
rosbag play Team_Hector_MappingBox_RoboCup_2011_Rescue_Arena.bag --clock

You should now be able see the mapping process in rviz.
# hector_slam

See the ROS Wiki for documentation: http://wiki.ros.org/hector_slam
8 changes: 8 additions & 0 deletions hector_compressed_map_transport/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
Changelog for package hector_compressed_map_transport
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0.3.5 (2016-06-24)
------------------
* Use the FindEigen3.cmake module provided by Eigen
* Contributors: Johannes Meyer

0.3.4 (2015-11-07)
------------------

0.3.3 (2014-06-15)
------------------
* fixed cmake find for eigen in indigo
Expand Down
21 changes: 16 additions & 5 deletions hector_compressed_map_transport/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,23 @@ project(hector_compressed_map_transport)
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS cmake_modules cv_bridge geometry_msgs hector_map_tools image_transport nav_msgs sensor_msgs)
find_package(catkin REQUIRED COMPONENTS cv_bridge geometry_msgs hector_map_tools image_transport nav_msgs sensor_msgs)

## System dependencies are found with CMake's conventions
# find_package(Boost REQUIRED COMPONENTS system)
find_package(Eigen REQUIRED)
include_directories(${Eigen_INCLUDE_DIRS})
add_definitions(${Eigen_DEFINITIONS})

# Find Eigen3 (from http://wiki.ros.org/jade/Migration)
find_package(Eigen3)
if(NOT EIGEN3_FOUND)
# Fallback to cmake_modules
find_package(cmake_modules REQUIRED)
find_package(Eigen REQUIRED)
set(EIGEN3_INCLUDE_DIRS ${EIGEN_INCLUDE_DIRS})
set(EIGEN3_LIBRARIES ${EIGEN_LIBRARIES}) # Not strictly necessary as Eigen is head only
# Possibly map additional variables to the EIGEN3_ prefix.
else()
set(EIGEN3_INCLUDE_DIRS ${EIGEN3_INCLUDE_DIR})
endif()

find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
Expand Down Expand Up @@ -57,7 +67,7 @@ catkin_package(
# INCLUDE_DIRS include
# LIBRARIES hector_compressed_map_transport
# CATKIN_DEPENDS cv_bridge geometry_msgs hector_map_tools image_transport nav_msgs opencv2 sensor_msgs
# DEPENDS eigen opencv2
# DEPENDS EIGEN3 opencv2
)

###########
Expand All @@ -69,6 +79,7 @@ catkin_package(
# include_directories(include)
include_directories(
${catkin_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIRS}
)

## Declare a cpp library
Expand Down
3 changes: 1 addition & 2 deletions hector_compressed_map_transport/package.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<package>
<name>hector_compressed_map_transport</name>
<version>0.3.3</version>
<version>0.3.5</version>
<description>
hector_compressed_map_transport provides means for transporting compressed map data through the use of image_transport.
</description>
Expand Down Expand Up @@ -39,7 +39,6 @@
<!-- Use test_depend for packages you need only for testing: -->
<!-- <test_depend>gtest</test_depend> -->
<buildtool_depend>catkin</buildtool_depend>
<build_depend>cmake_modules</build_depend>
<build_depend>cv_bridge</build_depend>
<build_depend>geometry_msgs</build_depend>
<build_depend>hector_map_tools</build_depend>
Expand Down
4 changes: 2 additions & 2 deletions hector_compressed_map_transport/src/map_to_image_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class MapAsImageProvider
cv::Mat* map_mat = &cv_img_full_.image;

// resize cv image if it doesn't have the same dimensions as the map
if ( (map_mat->rows != size_y) && (map_mat->cols != size_x)){
if ( (map_mat->rows != size_y) || (map_mat->cols != size_x)){
*map_mat = cv::Mat(size_y, size_x, CV_8U);
}

Expand All @@ -113,7 +113,7 @@ class MapAsImageProvider

for (int y = size_y_rev; y >= 0; --y){

int idx_map_y = size_x * (size_y -y);
int idx_map_y = size_x * (size_y_rev -y);
int idx_img_y = size_x * y;

for (int x = 0; x < size_x; ++x){
Expand Down
11 changes: 11 additions & 0 deletions hector_geotiff/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@
Changelog for package hector_geotiff
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0.3.5 (2016-06-24)
------------------
* Use the FindEigen3.cmake module provided by Eigen
* hector_geotiff/hector_geotiff_plugins: added possibility to specify Color of robot path in the geotiff file in order to allow multiple color robot paths
* Contributors: Dorothea Koert, Johannes Meyer

0.3.4 (2015-11-07)
------------------
* Removes trailing spaces and fixes indents
* Contributors: YuK_Ota

0.3.3 (2014-06-15)
------------------
* fixed cmake find for eigen in indigo
Expand Down
20 changes: 15 additions & 5 deletions hector_geotiff/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,25 @@ project(hector_geotiff)
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS cmake_modules hector_map_tools hector_nav_msgs nav_msgs pluginlib roscpp std_msgs)
find_package(catkin REQUIRED COMPONENTS hector_map_tools hector_nav_msgs nav_msgs pluginlib roscpp std_msgs)

## System dependencies are found with CMake's conventions
# find_package(Boost REQUIRED COMPONENTS system)

find_package(Qt4 4.6 COMPONENTS QtCore QtGui REQUIRED)

find_package(Eigen REQUIRED)
include_directories(${Eigen_INCLUDE_DIRS})
add_definitions(${Eigen_DEFINITIONS})
# Find Eigen3 (from http://wiki.ros.org/jade/Migration)
find_package(Eigen3)
if(NOT EIGEN3_FOUND)
# Fallback to cmake_modules
find_package(cmake_modules REQUIRED)
find_package(Eigen REQUIRED)
set(EIGEN3_INCLUDE_DIRS ${EIGEN_INCLUDE_DIRS})
set(EIGEN3_LIBRARIES ${EIGEN_LIBRARIES}) # Not strictly necessary as Eigen is head only
# Possibly map additional variables to the EIGEN3_ prefix.
else()
set(EIGEN3_INCLUDE_DIRS ${EIGEN3_INCLUDE_DIR})
endif()

include(${QT_USE_FILE})

Expand Down Expand Up @@ -60,7 +69,7 @@ catkin_package(
INCLUDE_DIRS include
LIBRARIES geotiff_writer
CATKIN_DEPENDS hector_map_tools hector_nav_msgs nav_msgs pluginlib roscpp std_msgs
DEPENDS Eigen QT
DEPENDS EIGEN3 QT
)

###########
Expand All @@ -72,6 +81,7 @@ catkin_package(
include_directories(include include/hector_geotiff)
include_directories(
${catkin_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIRS}
)

add_library(geotiff_writer src/geotiff_writer/geotiff_writer.cpp)
Expand Down
5 changes: 4 additions & 1 deletion hector_geotiff/include/hector_geotiff/geotiff_writer.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ class GeotiffWriter : public MapWriterInterface
void drawBackgroundCheckerboard();
void drawMap(const nav_msgs::OccupancyGrid& map, bool draw_explored_space_grid = true);
void drawObjectOfInterest(const Eigen::Vector2f& coords, const std::string& txt, const Color& color);
void drawPath(const Eigen::Vector3f& start, const std::vector<Eigen::Vector2f>& points);
inline virtual void drawPath(const Eigen::Vector3f& start, const std::vector<Eigen::Vector2f>& points){
drawPath(start, points, 120,0,240);
}
void drawPath(const Eigen::Vector3f& start, const std::vector<Eigen::Vector2f>& points, int color_r, int color_g, int color_b);
void drawCoords();
std::string getBasePathAndFileName() const;
void writeGeotiffImage();
Expand Down
8 changes: 7 additions & 1 deletion hector_geotiff/include/hector_geotiff/map_writer_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,13 @@ class MapWriterInterface{

virtual std::string getBasePathAndFileName() const = 0;
virtual void drawObjectOfInterest(const Eigen::Vector2f& coords, const std::string& txt, const Color& color) = 0;
virtual void drawPath(const Eigen::Vector3f& start, const std::vector<Eigen::Vector2f>& points) = 0;
//virtual void drawPath(const Eigen::Vector3f& start, const std::vector<Eigen::Vector2f>& points) = 0;

inline virtual void drawPath(const Eigen::Vector3f& start, const std::vector<Eigen::Vector2f>& points){
drawPath(start, points, 120,0,240);
}
virtual void drawPath(const Eigen::Vector3f& start, const std::vector<Eigen::Vector2f>& points, int color_r, int color_g, int color_b) = 0;

};

}
Expand Down
12 changes: 6 additions & 6 deletions hector_geotiff/launch/geotiff_mapper.launch
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?xml version="1.0"?>

<launch>
<arg name="trajectory_source_frame_name" default="/base_link"/>
<arg name="trajectory_update_rate" default="4"/>
<arg name="trajectory_publish_rate" default="0.25"/>
<arg name="map_file_path" default="$(find hector_geotiff)/maps"/>
<arg name="map_file_base_name" default="hector_slam_map"/>
<arg name="trajectory_source_frame_name" default="/base_link"/>
<arg name="trajectory_update_rate" default="4"/>
<arg name="trajectory_publish_rate" default="0.25"/>
<arg name="map_file_path" default="$(find hector_geotiff)/maps"/>
<arg name="map_file_base_name" default="hector_slam_map"/>

<node pkg="hector_trajectory_server" type="hector_trajectory_server" name="hector_trajectory_server" output="screen">
<param name="target_frame_name" type="string" value="/map" />
<param name="source_frame_name" type="string" value="$(arg trajectory_source_frame_name)" />
Expand Down
4 changes: 2 additions & 2 deletions hector_geotiff/package.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<package>
<name>hector_geotiff</name>
<version>0.3.3</version>
<version>0.3.5</version>
<description>
hector_geotiff provides a node that can be used to save occupancy grid map, robot trajectory and object of interest data to RoboCup Rescue compliant GeoTiff images.
</description>
Expand Down Expand Up @@ -38,14 +38,14 @@
<!-- Use test_depend for packages you need only for testing: -->
<!-- <test_depend>gtest</test_depend> -->
<buildtool_depend>catkin</buildtool_depend>
<build_depend>cmake_modules</build_depend>
<build_depend>hector_map_tools</build_depend>
<build_depend>hector_nav_msgs</build_depend>
<build_depend>nav_msgs</build_depend>
<build_depend>pluginlib</build_depend>
<build_depend>roscpp</build_depend>
<build_depend>std_msgs</build_depend>
<build_depend>libqt4-dev</build_depend>
<!--<run_depend>hector_geotiff_plugins</run_depend>-->
<run_depend>hector_map_tools</run_depend>
<run_depend>hector_nav_msgs</run_depend>
<run_depend>nav_msgs</run_depend>
Expand Down
4 changes: 2 additions & 2 deletions hector_geotiff/src/geotiff_writer/geotiff_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ void GeotiffWriter::drawObjectOfInterest(const Eigen::Vector2f& coords, const st
qPainter.drawText(ellipse_shape,Qt::AlignCenter , tmp);
}

void GeotiffWriter::drawPath(const Eigen::Vector3f& start, const std::vector<Eigen::Vector2f>& points)
void GeotiffWriter::drawPath(const Eigen::Vector3f& start, const std::vector<Eigen::Vector2f>& points,int color_r, int color_g, int color_b)
{
QPainter qPainter(&image);

Expand All @@ -426,7 +426,7 @@ void GeotiffWriter::drawPath(const Eigen::Vector3f& start, const std::vector<Eig
}

QPen pen(qPainter.pen());
pen.setColor(QColor(120,0,240));
pen.setColor(QColor(color_r, color_g, color_b));
pen.setWidth(3);

qPainter.setPen(pen);
Expand Down
8 changes: 8 additions & 0 deletions hector_geotiff_plugins/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
Changelog for package hector_geotiff_plugins
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0.3.5 (2016-06-24)
------------------
* hector_geotiff/hector_geotiff_plugins: added possibility to specify Color of robot path in the geotiff file in order to allow multiple color robot paths
* Contributors: Dorothea Koert

0.3.4 (2015-11-07)
------------------

0.3.3 (2014-06-15)
------------------

Expand Down
2 changes: 1 addition & 1 deletion hector_geotiff_plugins/package.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<package>
<name>hector_geotiff_plugins</name>
<version>0.3.3</version>
<version>0.3.5</version>
<description>
hector_geotiff_plugins contains plugins that extend geotiff maps generated by hector_geotiff.
</description>
Expand Down
9 changes: 8 additions & 1 deletion hector_geotiff_plugins/src/trajectory_geotiff_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ class TrajectoryMapWriter : public MapWriterPluginInterface
std::string name_;
bool draw_all_objects_;
std::string class_id_;
int path_color_r_;
int path_color_g_;
int path_color_b_;
};

TrajectoryMapWriter::TrajectoryMapWriter()
Expand All @@ -71,7 +74,11 @@ void TrajectoryMapWriter::initialize(const std::string& name)
ros::NodeHandle plugin_nh("~/" + name);
std::string service_name_;


plugin_nh.param("service_name", service_name_, std::string("trajectory"));
plugin_nh.param("path_color_r", path_color_r_, 120);
plugin_nh.param("path_color_g", path_color_g_, 0);
plugin_nh.param("path_color_b", path_color_b_, 240);

service_client_ = nh_.serviceClient<hector_nav_msgs::GetRobotTrajectory>(service_name_);

Expand Down Expand Up @@ -106,7 +113,7 @@ void TrajectoryMapWriter::draw(MapWriterInterface *interface)
if (size > 0){
//Eigen::Vector3f startVec(pose_vector[0].x,pose_vector[0].y,pose_vector[0].z);
Eigen::Vector3f startVec(pointVec[0].x(),pointVec[0].y(),0.0f);
interface->drawPath(startVec, pointVec);
interface->drawPath(startVec, pointVec, path_color_r_, path_color_g_, path_color_b_);
}
}

Expand Down
8 changes: 8 additions & 0 deletions hector_imu_attitude_to_tf/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
Changelog for package hector_imu_attitude_to_tf
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0.3.5 (2016-06-24)
------------------

0.3.4 (2015-11-07)
------------------
* hector_imu_attitude_to_tf: fixed default values of the base_frame and base_stabilized_frame parameters (fix #20)
* Contributors: Johannes Meyer

0.3.3 (2014-06-15)
------------------

Expand Down
2 changes: 1 addition & 1 deletion hector_imu_attitude_to_tf/package.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<package>
<name>hector_imu_attitude_to_tf</name>
<version>0.3.3</version>
<version>0.3.5</version>
<description>
hector_imu_attitude_to_tf is a lightweight node that can be used to publish the roll/pitch attitude angles reported via a imu message to tf.
</description>
Expand Down
4 changes: 2 additions & 2 deletions hector_imu_attitude_to_tf/src/imu_attitude_to_tf_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ int main(int argc, char **argv) {
ros::NodeHandle n;
ros::NodeHandle pn("~");

pn.param("base_stabilized_frame", p_base_stabilized_frame_, std::string("base_stabilized_frame"));
pn.param("base_frame", p_base_frame_, std::string("base_frame"));
pn.param("base_stabilized_frame", p_base_stabilized_frame_, std::string("base_stabilized"));
pn.param("base_frame", p_base_frame_, std::string("base_link"));

tfB_ = new tf::TransformBroadcaster();
transform_.getOrigin().setX(0.0);
Expand Down
9 changes: 9 additions & 0 deletions hector_imu_tools/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
Changelog for package hector_imu_tools
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0.3.5 (2016-06-24)
------------------

0.3.4 (2015-11-07)
------------------
* Fix sim setup
* remap for bertl setup
* Contributors: Florian Kunz, kohlbrecher

0.3.3 (2014-06-15)
------------------
* hector_imu_tools: Basics of simple height etimation
Expand Down
2 changes: 1 addition & 1 deletion hector_imu_tools/package.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<package>
<name>hector_imu_tools</name>
<version>0.3.3</version>
<version>0.3.5</version>
<description>
hector_imu_tools provides some tools for processing IMU messages
</description>
Expand Down
6 changes: 6 additions & 0 deletions hector_map_server/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
Changelog for package hector_map_server
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0.3.5 (2016-06-24)
------------------

0.3.4 (2015-11-07)
------------------

0.3.3 (2014-06-15)
------------------

Expand Down
Loading