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

UserK's profile - activity

2022-03-24 07:36:33 -0500 received badge  Famous Question (source)
2021-04-19 09:08:40 -0500 received badge  Notable Question (source)
2021-02-12 04:31:58 -0500 received badge  Popular Question (source)
2020-11-30 09:22:48 -0500 edited question Getting current State of the system using Flexbe

Getting current State of the system using Flexbe I am using FlexBE to execute robot behaviors. I would like to monitor t

2020-11-30 09:22:45 -0500 edited question Getting current State of the system using Flexbe

Getting current State of the FSM using Flexbe I am using FlexBE to execute robot behaviors. I would like to monitor the

2020-11-30 09:22:26 -0500 edited question Getting current State of the system using Flexbe

Getting current State of the FSM using Flexbe I am using FlexBE to execute robot behaviors. I would like to monitor the

2020-11-30 09:05:15 -0500 received badge  Associate Editor (source)
2020-11-30 09:05:15 -0500 edited question Getting current State of the system using Flexbe

Getting current State of the FSM using Flexbe I am using FlexBE to execute robot behaviors. I would like to monitor the

2020-11-30 09:04:54 -0500 edited question Getting current State of the system using Flexbe

Getting current State of the FSM using Flexbe I am using FlexBE to execute robot behaviors. I would like to monitor the

2020-11-30 09:03:54 -0500 asked a question Getting current State of the system using Flexbe

Getting current State of the FSM using Flexbe I am using FlexBE to execute robot behaviors. I would like to monitor the

2020-09-11 09:02:35 -0500 answered a question (Shapely.geometry.Polygon to geometry_msgs.PolygonStamped) Shapely polygon representation in RViz

You should check the geometry type before trying to extract the boundaries. With this you should cover all cases. Let'

2020-08-19 09:24:24 -0500 answered a question rosbag file freezes while playing

Had a similar issue with a 1.5Gb bag file. Tried : selectively playing topics back slowing the rate down to a tenth

2020-08-12 06:09:51 -0500 commented answer No joy package in noetic?

Released! These packages are now available: ros-noetic-joy ros-noetic-joy-dbgsym ros-noetic-joystick-drivers ros-noetic-

2020-06-23 20:14:57 -0500 commented answer ROS2 and Rviz : only displays values with a radius < 1 meter around the laser

Could you provide some details about the steps required to build rviz? I came across this undesired behaviour in 2020. I

2020-06-10 07:03:57 -0500 commented answer Can I call one .launch file from another .launch file?

Stop linking to other pages without writing the relevant part of the code! Stack Overflow Docet. Stop Ros answer anarchy

2020-06-10 07:03:00 -0500 commented answer Can I call one .launch file from another .launch file?

Stop linking to other pages without writing the relevant part of the code!

2020-06-03 15:33:25 -0500 received badge  Civic Duty (source)
2020-05-12 16:05:55 -0500 commented question Rotation error and strange behavior in Gazebo simulation

Problem fixed?

2019-09-09 00:58:25 -0500 received badge  Popular Question (source)
2019-09-09 00:58:25 -0500 received badge  Famous Question (source)
2019-09-09 00:58:25 -0500 received badge  Notable Question (source)
2018-04-29 22:07:52 -0500 marked best answer Unable to receive data from ROS Master using Matlab

I would like to connect to ROS network using Matlab and plot the laser scanner data

  • The ROS framework runs on a rover with IP address: 160.80.97.150. The rover is publishing laserscanner data on the /scan topic
  • Matlab runs on another computer with IP: 160.80.97.241

The port 11311 on the rover is opened:

heavylab@HeavyLab:~$ nmap 160.80.97.150 -p 11311

Starting Nmap 6.40 ( http://nmap.org ) at 2016-04-01 14:30 CEST
Nmap scan report for 160.80.97.150
Host is up (0.000030s latency).
PORT      STATE SERVICE
11311/tcp open  unknown

Nmap done: 1 IP address (1 host up) scanned in 0.09 seconds

The Problem

I am able to see the published topics from matlab but they seems empty. The receive command returns an error.

    % Connect to a remote ROS instance on port 11311
    rosinit('http://160.80.97.150:11311', 'NodeHost', '160.80.97.241')

    % Check for topics
    rostopic list

/scan            

    % Echo for /scan topic
    laser = rossubscriber('/scan')


laser = 

  Subscriber with properties:

        TopicName: '/scan'
      MessageType: 'sensor_msgs/LaserScan'
    LatestMessage: [0x1 LaserScan]
       BufferSize: 1
    NewMessageFcn: []

    % Receive Scan data
    scandata = receive(laser,10)

     Error using robotics.ros.Subscriber/receive
     (line 291)
     The function did not receive any data and timed
     out.

Do have any advice?

EDIT

Here is the output of the rosnode ping from Matlab:

 rosnode ping /rosout
    Pinging the /rosout node with a timeout of 3 seconds.
    Received no ping response.
2017-11-27 13:04:09 -0500 commented answer Can I call one .launch file from another .launch file?

Stop linking to other pages without writing the relevant part of the code that helped you out!

2017-11-27 13:04:01 -0500 commented answer Can I call one .launch file from another .launch file?

Stop linking to other pages without writing the relevant part of the code that helped you out!

2017-08-17 22:56:43 -0500 received badge  Necromancer (source)
2017-08-03 20:21:16 -0500 received badge  Famous Question (source)
2017-06-06 06:35:08 -0500 received badge  Famous Question (source)
2017-04-12 06:25:16 -0500 received badge  Popular Question (source)
2017-04-12 06:25:16 -0500 received badge  Notable Question (source)
2017-02-13 15:49:44 -0500 answered a question Deleting Gazebo model causes Python to freeze

I had the same problem. Make sure you are passing to the service a string. use str(modelName) instead

2016-12-13 10:05:40 -0500 received badge  Commentator
2016-12-13 10:05:40 -0500 commented answer Error using Python GetModelResponse

Thanks, basically thanks to this field you can specify in which frame the pose information should be expressed. You can leave it empty or specify for example "world"

2016-12-12 19:02:34 -0500 commented answer Error using Python GetModelResponse

Could you explain what relative_entity_name is?

2016-11-23 05:09:50 -0500 commented question Topic subscription with gazebo and ROSJava

Thank you very much, I will create a class for this type of Message and parse the data. It should work.

2016-11-22 12:34:04 -0500 asked a question Topic subscription with gazebo and ROSJava

Hi would like to be notified when the position of an object in gazebo changes. I have found the following options:

  1. Subscribe to gazebo/ModelStates and check for the object attributes
  2. Use the service call Get_model_state provided by Gazebo to retrieve state and property information about the object

I am trying the first one since I haven't found any documentation about calling a gazebo service from ROSJava. Check here

I started with the basic Subscriber from the official RosJava documentation. Now I need to define a new subscriber

Subscriber<gazebo_msgs.ModelStates> subscriber = connectedNode.newSubscriber("chatter", gazebo_msgs.ModelStates._TYPE);
    subscriber.addMessageListener(new MessageListener<gazebo_msgs.ModelStates>() {
      @Override
      public void onNewMessage(gazebo_msgs.ModelStates message) {
        log.info("I heard: \"" + message.getName() + "\"");
      }
    });

I would like to subscribe to a topic which exchanges gazebo_msgs/ModelStates messages.

string[] name                 # model names
geometry_msgs/Pose[] pose     # desired pose in world frame
geometry_msgs/Twist[] twist   # desired twist in world frame

Catkin_make returns the error:

gazebo_msgs does not exist
Subscriber<gazebo_msgs.modelstates> subscriber = connectedNode.newSubscriber("chatter", gazebo_msgs.ModelStates._TYPE);

Question How do I include this type of message in ROSJava?

2016-11-22 08:45:55 -0500 received badge  Organizer (source)
2016-11-22 08:44:58 -0500 asked a question Calling gazebo/spawn_sdf_model service from rosJava

I would like to call the spawn_sdf_model service from RosJava and update the simulation in Gazebo.

In order to spawn a model in gazebo I used a python node with the following code:

   rospy.wait_for_service("gazebo/spawn_sdf_model")
   delete_model = rospy.ServiceProxy("gazebo/delete_model", DeleteModel)
   # Use this service to spawn sdf model @ pose
   s = rospy.ServiceProxy("gazebo/spawn_sdf_model", SpawnModel)

   with open("/home/userk/.gazebo/models/coke_can/model.sdf", "r") as f:
            coke_xml = f.read()
   nameTable = "table1"
   roll = 0
   pitch = 0
   yaw = 0

I haven't found any documentation related to services and RosJava.

Question: How do I spawn a model in Gazebo from ROSJava?

2016-11-18 17:26:17 -0500 received badge  Critic (source)
2016-11-14 22:50:03 -0500 received badge  Nice Question (source)
2016-11-14 07:34:44 -0500 received badge  Student (source)
2016-10-09 20:22:32 -0500 received badge  Famous Question (source)
2016-08-03 07:30:03 -0500 commented question Unable to receive data from ROS Master using Matlab

No Nothing

2016-07-18 08:36:15 -0500 received badge  Famous Question (source)
2016-07-18 08:36:15 -0500 received badge  Notable Question (source)
2016-05-04 14:02:33 -0500 asked a question Access parameter server from launch file and start node

Hi, I have the following situation:

1 - A world is loaded in Gazebo

2 - A couple of cans are added in the simulation environment via the command line (tutorial)

I am using this command to place the can in Gazebo:

rosrun gazebo_ros spawn_model -database coke_can -sdf -model coke_can3 -y 2.2 -x -0.3

I would like to load the can automatically at start up based on the coordinates provided by the parameter server. Do you have any advice?

This is what I have tried so far:

  • A node saves the coordinates of the coke can in the parameter server.
  • Gazebo is launched
  • A node inserts the can in the x and y coordinates specified as arguments.

image description

Here the object is positioned in place thanks to the arguments. How do I use the variables in the parameter server as arguments of the node?

Thanks

2016-04-30 13:41:00 -0500 asked a question Variable object's position in .world file- Gazebo

Hi, I would like to specify the position of an object in a scene from a text file. Let's say I want a beer at position x,y,z,

beer: x,y,z

Consider the following world file which creates a ground plane, the sun, a gaz station and a beer.

mybot.world

<?xml version="1.0" ?>
<sdf version="1.4">
  <world name="default">
    <include>
      <uri>model://ground_plane</uri>
    </include>
    <include>
      <uri>model://sun</uri>
    </include>

     <include>
      <uri>model://beer</uri>
      <name>beer</name>
      <pose>-10 -8 0 0 0 0</pose>
    </include>

   <include>
      <uri>model://gas_station</uri>
      <name>gas_station</name>
      <pose>-2.0 7.0 0 0 0 0</pose>
    </include>
  </world>
</sdf>

This is my launch file benz_empty.launch

<launch>
    <include file="$(find gazebo_ros)/launch/empty_world.launch">
            <arg name="world_name" value="$(find mybot_gazebo)/worlds/mybot.world"/> 
    </include>  
</launch>

The launch command:

roslaunch mybot_gazebo benz_empty.launch

How do I use variables in a .world file?

2016-04-02 09:02:46 -0500 commented question Unable to receive data from ROS Master using Matlab

Yes, they are both linux machines. No I don't have any DNS. I added the output of the command in the question

2016-04-01 12:40:40 -0500 received badge  Popular Question (source)