Questions tagged [publisher]

325 questions
0
votes
1 answer

Python global variables not available in function

I am using the following code to read sensor data, process it and publish some feedback to a different topic, /scans_freespace. #!/usr/bin/env python import rospy from rospy.core import is_shutdown from sensor_msgs.msg import LaserScan from…
sisko
  • 9,604
  • 20
  • 67
  • 139
0
votes
2 answers

SwiftUI - @State property struct with binding doesn't cause redraw

Below is my code to draw a SwiftUI view that use a publisher to get its items that need drawing in a list. The items all have boolean values drawn with a Toggle. My view is dumb so I can use any type of boolean value, perhaps UserDefaults backed,…
Adam Carter
  • 4,741
  • 5
  • 42
  • 103
0
votes
1 answer

Is it sufficient to set ROS publisher buffer to 1 and Subscriber buffer to 1000 and still not loose any messages

I am trying to understand subscriber and publisher buffers. If I set subsrciber buffer to 1000 and publisher buffer to 1, are there any chances that I loose messages ? Could anyone please explain me the same?
0
votes
1 answer

How to zip two publishers but to get newest values instead of default oldest behavior of zip?

I need to build a Combine pipeline using Swift where 2 publishers are involved, pubA (A PassThroughSubject) generates values frequently and once pubB (another PassThroughSubject) generates a value, I need to use the latest value from pubA to trigger…
Tushar
  • 3,022
  • 2
  • 26
  • 26
0
votes
0 answers

ROS: merge two topics and publish one

I am trying to get the information out of two different topics and publish it on a new one. Topic 1 is called /objecstInfo which is of a custom msg type find_object_2d/DetectionInfo. I need to extract the filePaths out of this topic/msg. Header…
ican9595
  • 9
  • 3
0
votes
0 answers

tokbox/opentok - video chat, is there a way to highlight a specific publisher?

I'm looking at the React video chat sample app with little to no coding knowledge. As I can see when running the app in localhost, all publishers will have the same structure and no elements to distinguish one from another (ID is changing on…
AlexisVey
  • 69
  • 1
  • 9
0
votes
0 answers

Aedes and MQTT broker/publisher/subscriber

In my project I am trying to have multiple Raspberry Pi devices as "publishers" with one broker in the middle and countless subscribers to get info from certain topics. I am having problems with connecting broker and publisher, it just stops on…
cortex
  • 81
  • 5
0
votes
2 answers

Error deleting obsolete flush agents using ansible aem_agent module

Can anyone help me with the error deleting obsolete replication agents using the aem_agent module (https://github.com/lean-delivery/ansible-modules-aem/blob/master/aem_agent.py)? I face an error: "msg": "failed to delete agent: 405 - " Here is a…
fireman777
  • 134
  • 1
  • 15
0
votes
1 answer

WSO2 API Manager 2.6.0 How can Category and Group API In Publisher

I have 100 API. and I want Category in folder for per API Group. for example in store we have this: https://docs.wso2.com/display/AM260/Customizing+the+API+Store#CustomizingtheAPIStore-CategorizingandgroupingAPIs BUT I want in Publisher.
0
votes
2 answers

Combine replace `.compactMap` with custom `.decode`

I have created an AnyPublisher for subscribing to Firestore documents and the Output type is a DocumentSnapshot. I run it like this... firestoreSubscription.subscribe(MyHashable(), "/user/1234567890") .compactMap { try? $0.data(as: UserDoc.self…
Fogmeister
  • 76,236
  • 42
  • 207
  • 306
0
votes
1 answer

Falling Max Swift Combine Publisher

I'm working on a publisher for Swift/Combine Given a stream of inputs, I want to record the max value. If the next number is lower, take one from the last recorded max value and emit that. Input: [1,2,3,4,5,2,3,3,1] Output: [1,2,3,4,5,4,3,3,2] I…
Chris
  • 2,739
  • 4
  • 29
  • 57
0
votes
1 answer

PassthroughSubject completion finished not called

I'm trying to communicate with CoreBluetooth using Combine, but my completion handler of a PassthroughSubject is not called. Below you can see a rough layout of the code. The DetailViewModel contains the bluetooth peripheral and the data to…
Bram
  • 2,718
  • 1
  • 22
  • 43
0
votes
1 answer

Spring events listener not working, what is wrong?

I have a small demo app I followed on youtube https://www.youtube.com/watch?v=DrMmHTHTcCo I have setup everything as instructed but it does not work. here are the classes AnnotationConfiguration.java package com.milind.spring.event; import…
Milind
  • 21
  • 4
0
votes
1 answer

Why are nested publishers not calling my custom Publishers in SwiftUI/Combine?

This is a followup question to How to share published model between two view models in SwiftUI?. In order to make nested published models really publish, I used an approach described here: How to tell SwiftUI views to bind to nested…
adelmachris
  • 332
  • 2
  • 13
0
votes
0 answers

ROS fail to publish to a different message type

I wrote a node called translater that basically doesn't do anything except for translating one message type to another. It subscribes to a the topic pose_before and publishes to another topic pose_after. The topic pose_before is of message type…
Patricia Sung
  • 55
  • 1
  • 5