Skip to content

Commit 7423c81

Browse files
committed
Official 14.04 version on Indigo
1 parent 2b28814 commit 7423c81

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+848
-651
lines changed

CMakeLists.txt

+13-12
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,11 @@ find_package(catkin REQUIRED
3131
kdl_parser
3232
rosbag
3333
message_filters
34-
robot_state_pub
34+
robot_state_publisher
3535
image_transport
36+
tf
37+
tf_conversions
38+
tf2_ros
3639
fl
3740
dbot
3841
dbot_ros
@@ -46,11 +49,9 @@ set(CMAKE_MODULE_PATH ${PROJECT_MODULE_PATH})
4649
find_package(Boost REQUIRED)
4750
find_package(Eigen REQUIRED)
4851
find_package(OpenCV REQUIRED)
49-
#find_package(PCL 1.3 REQUIRED)
5052

5153
include_directories(${Boost_INCLUDE_DIRS})
5254
include_directories(${Eigen_INCLUDE_DIRS})
53-
#include_directories(${PCL_INCLUDE_DIRS})
5455
include_directories(${OpenCV_INCLUDE_DIRS})
5556

5657
##########################################
@@ -98,8 +99,11 @@ catkin_package(
9899
urdf
99100
kdl_parser
100101
message_filters
101-
robot_state_pub
102+
robot_state_publisher
102103
image_transport
104+
tf
105+
tf_conversions
106+
tf2_ros
103107
fl
104108
dbot
105109
dbot_ros
@@ -124,6 +128,7 @@ set(sources
124128
source/${PROJECT_NAME}/urdf_object_loader.cpp
125129
source/${PROJECT_NAME}/kinematics_from_urdf.cpp
126130
source/${PROJECT_NAME}/robot_transformer.cpp
131+
source/${PROJECT_NAME}/robot_transforms_provider.cpp
127132
source/${PROJECT_NAME}/tracker/robot_tracker.cpp
128133
source/${PROJECT_NAME}/tracker/fusion_tracker.cpp
129134
source/${PROJECT_NAME}/tracker/visual_tracker.cpp
@@ -142,18 +147,17 @@ add_library(${PROJECT_NAME} ${dbot_headers}
142147
${headers}
143148
${sources})
144149

145-
target_link_libraries(${PROJECT_NAME} ${PCL_LIBRARIES}
146-
${catkin_LIBRARIES}
147-
${OpenCV_LIBRARIES}
148-
assimp)
150+
target_link_libraries(${PROJECT_NAME}
151+
${catkin_LIBRARIES}
152+
${OpenCV_LIBRARIES}
153+
assimp)
149154

150155
add_executable(visual_tracker
151156
source/${PROJECT_NAME}/tracker/visual_tracker_node.cpp)
152157
target_link_libraries(visual_tracker
153158
${PROJECT_NAME}
154159
${catkin_LIBRARIES}
155160
${OpenCV_LIBS}
156-
${PCL_LIBRARIES}
157161
yaml-cpp)
158162

159163
add_executable(rotary_tracker
@@ -162,15 +166,13 @@ target_link_libraries(rotary_tracker
162166
${PROJECT_NAME}
163167
${catkin_LIBRARIES}
164168
${OpenCV_LIBS}
165-
${PCL_LIBRARIES}
166169
yaml-cpp)
167170

168171
add_executable(fusion_tracker
169172
source/${PROJECT_NAME}/tracker/fusion_tracker_node.cpp)
170173
target_link_libraries(fusion_tracker
171174
${PROJECT_NAME}
172175
${catkin_LIBRARIES}
173-
${OpenCV_LIBS}
174176
${PCL_LIBRARIES}
175177
yaml-cpp)
176178

@@ -180,6 +182,5 @@ target_link_libraries(robot_emulator
180182
${PROJECT_NAME}
181183
${catkin_LIBRARIES}
182184
${OpenCV_LIBS}
183-
${PCL_LIBRARIES}
184185
yaml-cpp)
185186

package.xml

+10-8
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,30 @@
88

99
<license>GPL</license>
1010

11-
<url type="website">http://github.com/jan-issac/rbot</url>
11+
<url type="website">http://github.com/bayesian-object-tracking</url>
1212

13+
<author email="[email protected]">Jan Issac</author>
1314
<author email="[email protected]">Manuel Wuthrich</author>
1415
<author email="[email protected]">Jeannette Bohg</author>
15-
<author email="[email protected]">Jan Issac</author>
1616

1717
<buildtool_depend>catkin</buildtool_depend>
1818

1919
<build_depend>roscpp</build_depend>
2020
<build_depend>roslib</build_depend>
2121
<build_depend>sensor_msgs</build_depend>
2222
<build_depend>VTK</build_depend>
23-
<build_depend>OpenCV</build_depend>
2423
<build_depend>eigen</build_depend>
2524
<build_depend>assmp</build_depend>
26-
<build_depend>pcl</build_depend>
2725
<build_depend>cv_bridge</build_depend>
2826
<build_depend>urdf</build_depend>
2927
<build_depend>orocos_kdl</build_depend>
3028
<build_depend>kdl_parser</build_depend>
3129
<build_depend>message_filters</build_depend>
32-
<build_depend>robot_state_pub</build_depend>
30+
<build_depend>robot_state_publisher</build_depend>
3331
<build_depend>image_transport</build_depend>
32+
<build_depend>tf</build_depend>
33+
<build_depend>tf_conversions</build_depend>
34+
<build_depend>tf2_ros</build_depend>
3435
<build_depend>fl</build_depend>
3536
<build_depend>dbot</build_depend>
3637
<build_depend>dbot_ros</build_depend>
@@ -39,15 +40,16 @@
3940
<run_depend>roslib</run_depend>
4041
<run_depend>sensor_msgs</run_depend>
4142
<run_depend>VTK</run_depend>
42-
<run_depend>OpenCV</run_depend>
4343
<run_depend>eigen</run_depend>
4444
<run_depend>assimp</run_depend>
45-
<run_depend>pcl</run_depend>
4645
<run_depend>urdf</run_depend>
4746
<run_depend>orocos_kdl</run_depend>
4847
<run_depend>kdl_parser</run_depend>
4948
<run_depend>message_filters</run_depend>
50-
<run_depend>robot_state_pub</run_depend>
49+
<run_depend>robot_state_publisher</run_depend>
50+
<run_depend>tf</run_depend>
51+
<run_depend>tf_conversions</run_depend>
52+
<run_depend>tf2_ros</run_depend>
5153
<run_depend>image_transport</run_depend>
5254
<run_depend>fl</run_depend>
5355
<run_depend>dbot</run_depend>

source/dbrt/builder/exceptions.hpp source/dbrt/builder/exceptions.h

+3-8
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323

2424
namespace dbrt
2525
{
26-
2726
/**
2827
* \brief Represents an exception thrown if the number of joint sigmas in the
2928
* of the joint_transition model does not match the state dimension.
@@ -38,7 +37,6 @@ class InvalidNumberOfJointSigmasException : public std::exception
3837
}
3938
};
4039

41-
4240
/**
4341
* \brief Represents an exception thrown if the number of indices in the
4442
* sampling block does not match the state dimension.
@@ -48,13 +46,13 @@ class InvalidNumberOfSamplingBlocksException : public std::exception
4846
public:
4947
const char* what() const noexcept
5048
{
51-
return "The number of indices in the sampling blocks does not match the "
49+
return "The number of indices in the sampling blocks does not match "
50+
"the "
5251
"number of joints (joint state dimension) of the robot.";
5352
}
5453
};
5554

56-
57-
class JointIndexOutOfBoundsException: public std::exception
55+
class JointIndexOutOfBoundsException : public std::exception
5856
{
5957
public:
6058
const char* what() const noexcept
@@ -63,7 +61,4 @@ class JointIndexOutOfBoundsException: public std::exception
6361
" of available joints!";
6462
}
6563
};
66-
67-
68-
6964
}

source/dbrt/builder/factorized_transition_builder.hpp source/dbrt/builder/factorized_transition_builder.h

+12-18
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,20 @@
1212
*/
1313

1414
/**
15-
* \file factorized_transition_builder.hpp
15+
* \file factorized_transition_builder.h
1616
* \date January 2016
1717
* \author Jan Issac ([email protected])
1818
*/
1919

2020
#pragma once
2121

22-
#include <memory>
23-
24-
#include <fl/util/profiling.hpp>
25-
#include <fl/util/meta.hpp>
26-
#include <fl/model/transition/linear_transition.hpp>
27-
2822
#include <Eigen/Dense>
29-
30-
#include <dbot/builder/transition_function_builder.hpp>
31-
32-
#include <dbrt/builder/exceptions.hpp>
33-
#include <dbrt/builder/exceptions.hpp>
23+
#include <dbot/builder/transition_function_builder.h>
24+
#include <dbrt/builder/exceptions.h>
25+
#include <fl/model/transition/linear_transition.hpp>
26+
#include <fl/util/meta.hpp>
27+
#include <fl/util/profiling.hpp>
28+
#include <memory>
3429

3530
namespace dbrt
3631
{
@@ -52,7 +47,7 @@ class FactorizedTransitionBuilder
5247

5348
struct Parameters
5449
{
55-
// double joint_sigma;
50+
// double joint_sigma;
5651
std::vector<double> joint_sigmas;
5752
std::vector<double> bias_sigmas;
5853
std::vector<double> bias_factors;
@@ -80,8 +75,7 @@ class FactorizedTransitionBuilder
8075
throw JointIndexOutOfBoundsException();
8176
}
8277

83-
84-
if(StateDim != 2 || NoiseDim != 2 || InputDim != 1)
78+
if (StateDim != 2 || NoiseDim != 2 || InputDim != 1)
8579
{
8680
std::cout << "damn you screwed up dimensions" << std::endl;
8781
exit(-1);
@@ -94,11 +88,11 @@ class FactorizedTransitionBuilder
9488
auto C = model->create_input_matrix();
9589

9690
A.setIdentity();
97-
A(1,1) = param_.bias_factors[joint_index];
91+
A(1, 1) = param_.bias_factors[joint_index];
9892

9993
B.setIdentity();
100-
B(0,0) = param_.joint_sigmas[joint_index];
101-
B(1,1) = param_.bias_sigmas[joint_index];
94+
B(0, 0) = param_.joint_sigmas[joint_index];
95+
B(1, 1) = param_.bias_sigmas[joint_index];
10296

10397
model->dynamics_matrix(A);
10498
model->noise_matrix(B);

source/dbrt/builder/robot_rb_sensor_builder.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@
2828
* \author Jan Issac ([email protected])
2929
*/
3030

31-
#include <dbrt/robot_state.hpp>
31+
// #include <kdl_parser/kdl_parser.hpp>
32+
#include <dbrt/robot_state.h>
3233

3334
#include <dbot/builder/rb_sensor_builder.h>
3435
#include <dbot/builder/rb_sensor_builder.hpp>
3536

36-
3737
namespace dbot
3838
{
3939
template class RbSensorBuilder<dbrt::RobotState<>>;

source/dbrt/builder/rotary_sensor_builder.hpp source/dbrt/builder/rotary_sensor_builder.h

+9-19
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,23 @@
1212
*/
1313

1414
/**
15-
* \file robot_joint_sensor_builder.hpp
15+
* \file robot_joint_sensor_builder.h
1616
* \date January 2016
1717
* \author Jan Issac ([email protected])
1818
*/
1919

2020
#pragma once
2121

22-
#include <memory>
23-
24-
#include <fl/util/profiling.hpp>
25-
#include <fl/util/meta.hpp>
26-
#include <fl/model/sensor/linear_gaussian_sensor.hpp>
27-
2822
#include <Eigen/Dense>
29-
30-
#include <dbot/builder/transition_function_builder.hpp>
31-
32-
#include <dbrt/builder/exceptions.hpp>
33-
#include <dbrt/builder/exceptions.hpp>
23+
#include <dbot/builder/transition_function_builder.h>
24+
#include <dbrt/builder/exceptions.h>
25+
#include <fl/model/sensor/linear_gaussian_sensor.hpp>
26+
#include <fl/util/meta.hpp>
27+
#include <fl/util/profiling.hpp>
28+
#include <memory>
3429

3530
namespace dbrt
3631
{
37-
3832
template <typename Tracker>
3933
class RotarySensorBuilder
4034
{
@@ -55,10 +49,7 @@ class RotarySensorBuilder
5549
int joint_count;
5650
};
5751

58-
RotarySensorBuilder(const Parameters& param) : param_(param)
59-
{
60-
}
61-
52+
RotarySensorBuilder(const Parameters& param) : param_(param) {}
6253
virtual std::shared_ptr<Model> build(int joint_index) const
6354
{
6455
if (param_.joint_count != param_.joint_sigmas.size())
@@ -71,8 +62,7 @@ class RotarySensorBuilder
7162
throw JointIndexOutOfBoundsException();
7263
}
7364

74-
75-
if(StateDim != 2 || ObsrvDim != 1)
65+
if (StateDim != 2 || ObsrvDim != 1)
7666
{
7767
std::cout << "dawg you screwed up dimensions" << std::endl;
7868
exit(-1);

source/dbrt/builder/rotary_tracker_builder.hpp source/dbrt/builder/rotary_tracker_builder.h

+7-9
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,21 @@
1212
*/
1313

1414
/**
15-
* \file particle_tracker_builder.hpp
15+
* \file rotary_sensor_builder.h
1616
* \date November 2015
1717
* \author Jan Issac ([email protected])
1818
*/
1919

2020
#pragma once
2121

22-
#include <exception>
23-
24-
#include <dbot/object_resource_identifier.hpp>
25-
#include <dbot/tracker/tracker.hpp>
26-
#include <dbot/builder/particle_tracker_builder.hpp>
27-
22+
#include <dbot/builder/particle_tracker_builder.h>
23+
#include <dbot/object_resource_identifier.h>
24+
#include <dbot/tracker/tracker.h>
25+
#include <dbrt/builder/factorized_transition_builder.h>
26+
#include <dbrt/builder/rotary_sensor_builder.h>
2827
#include <dbrt/kinematics_from_urdf.h>
2928
#include <dbrt/tracker/rotary_tracker.h>
30-
#include <dbrt/builder/factorized_transition_builder.hpp>
31-
#include <dbrt/builder/rotary_sensor_builder.hpp>
29+
#include <exception>
3230

3331
namespace dbrt
3432
{

0 commit comments

Comments
 (0)