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

Visualize height of UAV (both esitamted state and ground truth) in rviz #83

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tongtybj
Copy link
Member

@tongtybj tongtybj commented Jun 11, 2016

This PR is about the height visualization in rviz, which is separated from commit in #65, and was also discussed in #63

  • [jsk_mbzirc_tasks/include/jsk_mbzirc_tasks/mbzirc_gazebo_uav_state_display_plugin.h, jsk_mbzirc_tasks/src/mbzirc_gazebo_uav_state_display_plugin.cpp/, jsk_mbzirc_tasks/urdf/quadrotor_with_hokyo30lx_and_downward_cam.urdf.xacro ] Add plugin visualizting height of UAV
  • [jsk_mbzirc_tasks/launch/jsk_mbzirc_task_1.launch,jsk_mbzirc_tasks/launch/jsk_mbzirc_task_3.launch ] Modify the description to publish height info of each UAV in rviz.
  • [jsk_mbzirc_tasks/config/task1.rviz,jsk_mbzirc_tasks/config/task3.rviz ] Modify the config to display the height info of each UAV

@tongtybj
Copy link
Member Author

tongtybj commented Jun 11, 2016

screenshot from 2016-06-12 08 10 25

screenshot from 2016-06-12 07 49 18

@tongtybj tongtybj force-pushed the height_visualization branch from 8331c7a to 46013de Compare June 12, 2016 01:06
@k-okada
Copy link
Member

k-okada commented Jun 13, 2016

looks nice, but why you have to create another plugin for this purpose.

@tongtybj
Copy link
Member Author

tongtybj commented Jun 13, 2016

@k-okada

Just follow this same type in
https://github.com/start-jsk/jsk_mbzirc/blob/master/jsk_mbzirc_common/src/mbzirc_gazebo_truck_plugin.cpp#L189-L193

So I need a plugin to convert message to std_msgs::string so that the
relay_field_728.py can receive and change to jsk_rviz_plugins/OverlayText:
https://github.com/start-jsk/jsk_mbzirc/blob/master/jsk_mbzirc_tasks/launch/jsk_mbzirc_task_1.launch#L39-L41

Is there any better solution?

@k-okada
Copy link
Member

k-okada commented Jun 13, 2016

please try something like (this is not confimed, may need debugging),
relay_field.py /dom /pose_overlay jsk_rviz_plugins/OverlayText
'text: m.pose.pose.position.z'

◉ Kei Okada

On Mon, Jun 13, 2016 at 2:37 PM, 趙 漠居 [email protected] wrote:

@k-okada https://github.com/k-okada

Just follow this same type in

https://github.com/start-jsk/jsk_mbzirc/blob/master/jsk_mbzirc_common/src/mbzirc_gazebo_truck_plugin.cpp#L189-L193

So I need a plugin to convert message to std_msgs::string so that the
relay_field_728.py can receive and change to jsk_rviz_plugins/OverlayText:

https://github.com/start-jsk/jsk_mbzirc/blob/master/jsk_mbzirc_tasks/launch/jsk_mbzirc_task_1.launch#L39-L41


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#83 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAeG3HufdUa7hXGfy6QJrtaReRAtAMp3ks5qLOykgaJpZM4IzqSZ
.

@tongtybj tongtybj force-pushed the height_visualization branch from c287b02 to 8b4d5cf Compare June 14, 2016 03:17
@tongtybj
Copy link
Member Author

tongtybj commented Jun 14, 2016

not sure this is correct way.
I add type conversion process in relay_field.py if input and output value type are different:
https://github.com/tongtybj/jsk_mbzirc/blob/8b4d5cfb692a8b9d5153260e2d81591e68bf7210/jsk_mbzirc_tasks/script/relay_field_728.py#L42-L44

With this, direct conversion is achieved:

<node pkg="jsk_mbzirc_tasks" name="uav_state_text_to_overlay" type="relay_field_728.py"
        args="/state /state_overlay jsk_rviz_plugins/OverlayText
              'text: [m.pose.pose.position.z, str]' --wai

task1
task3

@tongtybj tongtybj force-pushed the height_visualization branch from 8b4d5cf to 0a185c2 Compare June 14, 2016 03:31
@furushchev
Copy link
Member

furushchev commented Jun 15, 2016

travis failed

/home/travis/catkin_ws/src/jsk_mbzirc/jsk_mbzirc_tasks/script/relay_field_728.py:44:41: E231 missing whitespace after ','

@tongtybj tongtybj force-pushed the height_visualization branch from 0a185c2 to d411ec9 Compare June 16, 2016 08:11
@tongtybj tongtybj force-pushed the height_visualization branch from d411ec9 to 82bdb4a Compare June 16, 2016 09:07
@tongtybj
Copy link
Member Author

@k-okada
is this PR OK?

@k-okada
Copy link
Member

k-okada commented Jun 17, 2016

please check if ros/ros_comm#728 is already released

◉ Kei Okada

On Fri, Jun 17, 2016 at 8:19 AM, 趙 漠居 [email protected] wrote:

@k-okada
is this PR OK?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@tongtybj
Copy link
Member Author

@k-okada
Yes, it is released.
So next step is to send PR to https://github.com/ros/ros_comm, is it right?

@k-okada
Copy link
Member

k-okada commented Jun 17, 2016

If it is release you can use released version
And if you need to update script, send new PR

◉ Kei Okada

2016/06/17 12:46、趙 漠居 [email protected] のメッセージ:

@k-okada
Yes, it is released.
So next step is to send PR to https://github.com/ros/ros_comm, is it right?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@furushchev
Copy link
Member

@tongtybj I think it's better to use ros_comm version relay_field instead of this repo version. you will need to fix launch files, (and remove old relay_field script?)

@tongtybj
Copy link
Member Author

@furushchev
Exactly.
Besides, I also updated the script:
https://github.com/tongtybj/jsk_mbzirc/blob/82bdb4a32ce494bcf252167bbd8217619c7244b7/jsk_mbzirc_tasks/script/relay_field_728.py#L42-L44
So I need to send PR to ros_comm, is it correct?

@furushchev
Copy link
Member

@tongtybj はい。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants