ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Kei Okada's profile - activity

2023-05-08 16:31:46 -0500 received badge  Nice Answer (source)
2021-08-23 12:08:28 -0500 received badge  Good Question (source)
2021-06-19 03:09:09 -0500 answered a question how to use rxplot to plot data on /tf

I ran into same question and what we found so far... For example, we have transformation between world, earth, moon, an

2021-05-20 07:32:30 -0500 marked best answer generating versioned rosinstall file from currnt workspace

Hi

Is there any tool that is able to dump rosinstall with version tag from current workspace or .rosinstall file?

For example, I have following .rosinstall for my application, http://code.google.com/p/rtm-ros-robotics/source/browse/trunk/agentsystem_ros_tutorials/rtm-ros-robotics.rosinstall for developers to work against the trunk repositories. Then, Jenkins/Hudson server check the build status and add the latest tag.

I would be very happy if I can freeze this set as a .rosinstall file with version tag in all repositories so that I can commit the file to as a stable.rosinstall file and users always be able to setup with stable set of repository versions.

2021-04-08 02:57:33 -0500 marked best answer how to pass a string argument that contains white space?

I have a program that takes string as an argument, such as

$ ./say "hello world"

and would like to invoke this program from roslaunch.

Here is an example of the launch file:

 < launch>
   < node name="say" pkg="say" type="say" args='\"hello world\"' />
 < /launch>

When I check the command line argument with

$ roslaunch say.launch --args /say

the output is

PYTHONPATH=/opt/ros/diamondback/ros/core/roslib/src /home/k-okada/ros/diamondback/say/say "hello world" __name:=say

and this is ok to me. but when I try to start this program from launch file by

$ roslaunch say.launch

the argument corrupts. It seems that the roslaunch divide string arugment into each words as written in the log file

[roslaunch][INFO] 2011-07-01 13:35:10,808: process[hoge-1]: args[[u'/home/k-okad
a/ros/diamondback/say/say', '"hello', 'world"', u'__name:=
say']]

Changing the launch file to

 < launch>
   < node name="say" pkg="say" type="say" args='\"hello\ world\"' />
 < /launch>

worked, but if there are other solution, I would like to know that.

2021-02-01 17:48:25 -0500 commented answer Has anyone written a trajectory plotting tool?

@oridong thanks for the feedback. How can I re-produce your problem? Could you provide a bag file or source code to publ

2020-10-19 01:38:38 -0500 received badge  Good Answer (source)
2020-10-02 06:01:26 -0500 received badge  Nice Answer (source)
2020-10-02 05:58:35 -0500 commented answer Has anyone written a trajectory plotting tool?

rqt couldn't find plugins, just after it's install. But you can force update cache? of installed plugins by running rqt

2020-06-20 17:59:18 -0500 received badge  Nice Answer (source)
2019-04-12 06:21:14 -0500 received badge  Necromancer (source)
2018-08-02 19:06:23 -0500 answered a question Profiling ros_controllers with Valgrind / Callgrind

This scould be duplicates of https://answers.ros.org/question/28383/time-consumption-profiling/ and also look at http:/

2018-08-02 19:05:30 -0500 commented answer Time consumption profiling

HI, thanks for information, I have added new wiki for using valgrind on ROS. Any contributions are welcome. http://wiki.

2018-06-07 05:44:04 -0500 received badge  Associate Editor (source)
2018-06-07 05:44:04 -0500 edited answer Has anyone written a trajectory plotting tool?

recently my college wrote the rqt plugin for visualize joint trajectory , try apt-get install ros-kinetic-rqt-joint-traj

2018-06-07 05:42:52 -0500 answered a question Has anyone written a trajectory plotting tool?

recently my college wrote the rqt plugin for visualize joint trajectory , try apt-get install ros-kinetic-rqt-joint-traj

2018-03-13 08:28:28 -0500 commented answer Color issue with URDF and multiple visual tags

ok, please pust a issue to github and cc to @k-okada

2018-03-12 23:11:10 -0500 commented answer Color issue with URDF and multiple visual tags

From https://github.com/ros-visualization/rviz/pull/1079, if you use rviz >= 1.12.5 include the patch for this. If yo

2017-10-28 02:50:42 -0500 edited answer Installing ROS on Ubuntu Bash in Windows 10

Update (2017-10-28): @k-okada I have successfully running ros, rviz + stage or rviz + gazebo (though the gazebo screen

2017-06-28 05:52:08 -0500 received badge  Famous Question (source)
2017-04-20 17:31:26 -0500 marked best answer how do I create packages that generate messages for all other packages.

We're maintaining our custom made ros client library ( http://wiki.ros.org/roseus ). We'd like to create new package that holds all messages files that compiled into eus language, so that uses do not need to generate on their local machine. How do I create such a packages or how do I tell ros build firm to do that.

2017-04-20 16:44:56 -0500 marked best answer how to find packages that meta-package contains

As far as I understand, ros is the meta-package that contains several packages, https://github.com/ros/ros/blob/indig... , how do we not that which package does the ros contains?

k-okada@kokada-t430s:/opt/ros/hydro/share$ rospack depends ros
[rospack] Error: no such package ros
k-okada@kokada-t430s:/opt/ros/hydro/share$ rosstack depends ros
[rosstack] Error: no such package ros
k-okada@kokada-t430s:/opt/ros/hydro/share$ rospack depends roslib
catkin
rospack
2017-04-20 16:44:50 -0500 marked best answer how to find dependent packages in caktin

is there way to get list of the depend package as we used rospack depend, for catkin?

k-okada@kokada-t430s:/opt/ros/hydro/share/roslang$ rospack depends roslanag
[rospack] Error: no such package roslanag
k-okada@kokada-t430s:/opt/ros/hydro/share/roslang$ rospack depends-on roslanag
[rospack] Warning: no such package roslanag

UPDATE:

Original question is invalid, rospack depend should work.

$ rospack depends roslang
catkin
genmsg
2017-04-10 19:50:11 -0500 received badge  Necromancer (source)
2017-04-10 09:31:23 -0500 answered a question Image processing pipeline for a stereo camera feed

you can use nodelet to load two edge detector into one process.

<launch>
  <node pkg="nodelet" type="nodelet" name="manager" args="manager"/>

  <node pkg="nodelet" type="nodelet" name="left_edge_detector"
        args="load edge_detection/edge_detection manager">
    <remap from="image" to="left/image_raw" />
    <param name="debug_view" value="false" />
  </node>
  <node pkg="nodelet" type="nodelet" name="right_edge_detector"
        args="load edge_detection/edge_detection manager">
    <remap from="image" to="right/image_raw" />
    <param name="debug_view" value="false" />
  </node> 

  <node pkg="image_view" type="image_view" name="left_edge_viewer">
    <remap from="image" to="left_edge_detector/image" />
  </node>
  <node pkg="image_view" type="image_view" name="right_edge_viewer">
    <remap from="image" to="right_edge_detector/image" />
  </node>
</launch>
2017-04-10 09:12:50 -0500 edited question How I can run contour_moments.cpp OpenCV example?

I don’t know how to run the file contour_moments.cpp that’s able in this github link: https://github.com/ros-perception/vis...

I’m working with Indigo and I have installed OpenCV3 following this ROS.org link: http://wiki.ros.org/vision_opencv

when i run the command rosrun opencv_apps contour_moments it only appear a warning and nothing else:

[ WARN] [1450293289.992148166]: Topic 'image' has not been remapped! Typical command-line usage:
    $ rosrun image_rotate image_rotate image:=<image topic> [transport]

which topic should I use?? (I'm using a kinect, and it is working fine)

2017-04-10 09:10:00 -0500 answered a question How I can run contour_moments.cpp OpenCV example?

These nodes do not publish any message unless someone is reading that. so try roslaunch opencv_apps contour_moments.launch image:=image_raw and rostopic echo /contour_moments/moment

2017-02-08 19:26:06 -0500 received badge  Nice Question (source)
2017-01-30 02:35:42 -0500 marked best answer using both JointTrajectoryController and JointPositionController at same time in ros_control

Hi,

I just follow the excellent ros_control tutorial at ( http://gazebosim.org/tutorials/?tut=r... ) and able to run robot in gazebo, that provide command interface for each joint

roslaunch rrbot_gazebo rrbot_world.launch
roslaunch rrbot_control rrbot_control.launch

Next, I'd like to control this robot from our application, so need to use JointTrajectoryAction (or FollowJointTrajectoryAction), so I added following code in rrbot_control

diff --git a/rrbot_control/config/rrbot_control.yaml b/rrbot_control/config/rrbot_control.yaml
index 9cbcf45..0f62b1a 100644
--- a/rrbot_control/config/rrbot_control.yaml
+++ b/rrbot_control/config/rrbot_control.yaml
@@ -13,3 +13,15 @@ rrbot:
     type: effort_controllers/JointPositionController
     joint: joint2
     pid: {p: 100.0, i: 0.01, d: 10.0}
+
+  # Trajectory Controllers ---------------------------------------
+  joint_trajectory_controller:
+    type: "effort_controllers/JointTrajectoryController"
+    joints:
+      - joint1
+      - joint2
+
+    gains: # Required because we're controlling an effort interface
+      joint1: {p: 100,  d: 1, i: 1, i_clamp: 1}
+      joint2: {p: 100,  d: 1, i: 1, i_clamp: 1}
+
diff --git a/rrbot_control/launch/rrbot_control.launch b/rrbot_control/launch/rrbot_control.launch
index 0a0c605..a4b1b2a 100644
--- a/rrbot_control/launch/rrbot_control.launch
+++ b/rrbot_control/launch/rrbot_control.launch
@@ -7,7 +7,9 @@
   <node name="controller_spawner" pkg="controller_manager" type="spawner" respawn="false"
        output="screen" ns="/rrbot" args="joint_state_controller
                                          joint1_position_controller
-                                     joint2_position_controller"/>
+                                   joint2_position_controller
+                                   joint_trajectory_controller
+                                          "/>

   <!-- convert joint states to TF transforms for rviz, etc -->
   <node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher"

but I got have following error. Is it possible to run joint trajectory action while keeping ability to command value to each joint? I remember some real robto (pr2, baxter) has capable of this, so how do the archive that?

[ERROR] [WallTime: 1421039041.629407] [242.570000] Failed to start controllers: joint_state_controller, joint1_position_controller, joint2_position_controller, joint_trajectory_controller
[ WARN] [1421039041.629194844, 242.570000000]: Resource conflict on [joint1].  Controllers = [joint1_position_controller, joint_trajectory_controller, ]
[ WARN] [1421039041.629234042, 242.570000000]: Resource conflict on [joint2].  Controllers =    [joint2_position_controller, joint_trajectory_controller, ]
[ERROR] [1421039041.629256800, 242.570000000]: Could not switch controllers, due to resource conflict
2016-12-01 22:01:28 -0500 marked best answer how to specify test packge in `catkin_make test`

can we choose package to be tested? currently catkin_make test tests all test code under src directory, but I'd like to check only specific packages, in order to save time.

2016-09-15 10:55:34 -0500 marked best answer How to convert cv::Mat to sensor_msgs::Image::Ptr?

I was wondering about how to publish cv:Mat. The tutorial wiki http://www.ros.org/wiki/cv_bridge/Tut... didn't give me an answer and following code seems working, but I suppose there are a way to do this without using old CvBridge interface.

        IplImage out_msg = sal_float_image;
        sensor_msgs::CvBridge bridge_;
        sensor_msgs::Image::Ptr saliency_msg = bridge_.cvToImgMsg(&out_msg, "passthrough");

        saliency_img_pub.publish(saliency_msg);
2016-08-31 09:37:24 -0500 answered a question Segmentation fault at MoveIt python tutorial

This issue has been discussed at https://github.com/ros-planning/movei...

2016-06-03 02:57:36 -0500 received badge  Nice Answer (source)
2016-06-03 01:48:29 -0500 received badge  Necromancer (source)
2016-06-03 01:32:31 -0500 answered a question Voice commands / speech to and from robot?

for speech recognition, you can also use following ROS nodes

web based -> https://github.com/tork-a/visualizati...

and

android based -> https://play.google.com/store/apps/de...

2016-06-03 01:29:32 -0500 received badge  Critic (source)
2016-06-01 13:59:23 -0500 received badge  Necromancer (source)