Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Pinoxchio
apollo
提交
f2d5490a
A
apollo
项目概览
Pinoxchio
/
apollo
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
apollo
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f2d5490a
编写于
9月 18, 2018
作者:
fengqikai1414
提交者:
Dengchengliang
9月 18, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
transform: fix namespace
上级
19d9d313
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
16 addition
and
12 deletion
+16
-12
modules/transform/BUILD
modules/transform/BUILD
+14
-0
modules/transform/buffer.cc
modules/transform/buffer.cc
+2
-4
modules/transform/buffer.h
modules/transform/buffer.h
+0
-2
modules/transform/buffer_interface.h
modules/transform/buffer_interface.h
+0
-2
modules/transform/transform_broadcaster.cpp
modules/transform/transform_broadcaster.cpp
+0
-2
modules/transform/transform_broadcaster.h
modules/transform/transform_broadcaster.h
+0
-2
未找到文件。
modules/transform/BUILD
浏览文件 @
f2d5490a
...
...
@@ -17,6 +17,20 @@ cc_library(
"//third_party/tf2:tf2"
],
)
cc_library
(
name
=
"transform_broadcaster_lib"
,
srcs
=
[
"transform_broadcaster.cc"
,
],
hdrs
=
[
"transform_broadcaster.h"
,
],
deps
=
[
"//modules/transform/proto:transform_proto"
,
"//framework:cybertron"
,
"//third_party/tf2:tf2"
],
)
cc_library
(
name
=
"static_transform_component_lib"
,
...
...
modules/transform/buffer.cc
浏览文件 @
f2d5490a
...
...
@@ -21,7 +21,6 @@
#include "modules/transform/proto/transform.pb.h"
namespace
apollo
{
namespace
cybertron
{
namespace
transform
{
Buffer
::
Buffer
()
:
BufferCore
()
{
Init
();
}
...
...
@@ -30,7 +29,7 @@ int Buffer::Init() {
std
::
string
node_name
=
"transform_listener_"
+
std
::
to_string
(
cybertron
::
Time
::
Now
().
ToNanosecond
());
node_
=
cybertron
::
CreateNode
(
node_name
);
proto
::
RoleAttributes
attr
;
apollo
::
cybertron
::
proto
::
RoleAttributes
attr
;
attr
.
set_channel_name
(
"/tf"
);
message_subscriber_tf_
=
node_
->
CreateReader
<
apollo
::
transform
::
TransformStampeds
>
(
...
...
@@ -41,7 +40,7 @@ int Buffer::Init() {
apollo
::
cybertron
::
proto
::
RoleAttributes
attr_static
;
attr_static
.
set_channel_name
(
"/tf_static"
);
attr_static
.
mutable_qos_profile
()
->
CopyFrom
(
transport
::
QosProfileConf
::
QOS_PROFILE_TF_STATIC
);
apollo
::
cybertron
::
transport
::
QosProfileConf
::
QOS_PROFILE_TF_STATIC
);
message_subscriber_tf_static_
=
node_
->
CreateReader
<
apollo
::
transform
::
TransformStampeds
>
(
attr_static
,
...
...
@@ -226,5 +225,4 @@ bool Buffer::canTransform(const std::string& target_frame,
}
}
// namespace transform
}
// namespace cybertron
}
// namespace apollo
modules/transform/buffer.h
浏览文件 @
f2d5490a
...
...
@@ -29,7 +29,6 @@
#include "modules/transform/proto/transform.pb.h"
namespace
apollo
{
namespace
cybertron
{
namespace
transform
{
// extend the BufferInterface class and BufferCore class
...
...
@@ -150,7 +149,6 @@ static const std::string threading_error =
"messages, call setUsingDedicatedThread(true) on your Buffer instance."
;
}
// namespace transform
}
// namespace cybertron
}
// namespace apollo
#endif // INCLUDE_CYBERTRON_TF2_CYBERTRON_BUFFER_H_
modules/transform/buffer_interface.h
浏览文件 @
f2d5490a
...
...
@@ -12,7 +12,6 @@
#include "cybertron/time/time.h"
namespace
apollo
{
namespace
cybertron
{
namespace
transform
{
// extend the TFCore class and the TFCpp class
...
...
@@ -154,7 +153,6 @@ class BufferInterface {
};
// class
}
// namespace transform
}
// namespace cybertron
}
// namespace apollo
#endif // INCLUDE_CYBERTRON_TF2_CYBERTRON_BUFFER_INTERFACE_H_
modules/transform/transform_broadcaster.cpp
浏览文件 @
f2d5490a
...
...
@@ -2,7 +2,6 @@
#include "cybertron/time/time.h"
namespace
apollo
{
namespace
cybertron
{
namespace
transform
{
TransformBroadcaster
::
TransformBroadcaster
()
{
...
...
@@ -37,5 +36,4 @@ void TransformBroadcaster::sendTransform(
}
}
// namespace transform
}
// namespace cybertron
}
// namespace apollo
modules/transform/transform_broadcaster.h
浏览文件 @
f2d5490a
...
...
@@ -9,7 +9,6 @@
#include "modules/transform/proto/transform.pb.h"
namespace
apollo
{
namespace
cybertron
{
namespace
transform
{
/** \brief This class provides an easy way to publish coordinate frame transform
...
...
@@ -49,7 +48,6 @@ class TransformBroadcaster {
std
::
shared_ptr
<
cybertron
::
Writer
<
apollo
::
transform
::
TransformStampeds
>>
publisher_
;
};
}
// namespace transform
}
// namespace cybertron
}
// namespace apollo
#endif // INCLUDE_CYBERTRON_TF2_CYBERTRON_TRANSFORM_BROADCASTER_H_
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录